Package nbbrd.io.text
Interface TextParser<T>
-
public interface TextParser<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default <V> @NonNull TextParser<V>andThen(@NonNull Function<? super T,? extends V> after)default @NonNull TparseChars(@NonNull CharSequence source)default @NonNull TparseFile(@NonNull File source, @NonNull Charset encoding)default @NonNull TparsePath(@NonNull Path source, @NonNull Charset encoding)@NonNull TparseReader(@NonNull Reader resource)default @NonNull TparseReader(IOSupplier<? extends Reader> source)default @NonNull TparseResource(@NonNull Class<?> type, @NonNull String name, @NonNull Charset encoding)@NonNull TparseStream(@NonNull InputStream resource, @NonNull Charset encoding)default @NonNull TparseStream(IOSupplier<? extends InputStream> source, @NonNull Charset encoding)
-
-
-
Method Detail
-
parseChars
default @NonNull T parseChars(@NonNull CharSequence source) throws IOException
- Throws:
IOException
-
parseFile
default @NonNull T parseFile(@NonNull File source, @NonNull Charset encoding) throws IOException
- Throws:
IOException
-
parsePath
default @NonNull T parsePath(@NonNull Path source, @NonNull Charset encoding) throws IOException
- Throws:
IOException
-
parseResource
default @NonNull T parseResource(@NonNull Class<?> type, @NonNull String name, @NonNull Charset encoding) throws IOException
- Throws:
IOException
-
parseReader
default @NonNull T parseReader(IOSupplier<? extends Reader> source) throws IOException
- Throws:
IOException
-
parseStream
default @NonNull T parseStream(IOSupplier<? extends InputStream> source, @NonNull Charset encoding) throws IOException
- Throws:
IOException
-
parseReader
@NonNull T parseReader(@NonNull Reader resource) throws IOException
- Throws:
IOException
-
parseStream
@NonNull T parseStream(@NonNull InputStream resource, @NonNull Charset encoding) throws IOException
- Throws:
IOException
-
andThen
default <V> @NonNull TextParser<V> andThen(@NonNull Function<? super T,? extends V> after)
-
-