Package nbbrd.io.text
Interface TextParser<T>
public interface TextParser<T>
-
Method Summary
Modifier and TypeMethodDescriptiondefault <V> @NonNull TextParser<V>static <T> @NonNull TextParser<T>onParsingReader(@NonNull IOFunction<? super Reader, ? extends T> function) default @NonNull TparseChars(@NonNull CharSequence source) default @NonNull Tdefault @NonNull T@NonNull TparseReader(@NonNull Reader resource) default @NonNull TparseReader(@NonNull 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(@NonNull IOSupplier<? extends InputStream> source, @NonNull Charset encoding) default @NonNull FileParser<T>withCharset(@NonNull Charset encoding)
-
Method Details
-
parseChars
- Throws:
IOException
-
parseFile
- Throws:
IOException
-
parsePath
- Throws:
IOException
-
parseResource
default @NonNull T parseResource(@NonNull Class<?> type, @NonNull String name, @NonNull Charset encoding) throws IOException - Throws:
IOException
-
parseReader
- Throws:
IOException
-
parseStream
default @NonNull T parseStream(@NonNull IOSupplier<? extends InputStream> source, @NonNull Charset encoding) throws IOException - Throws:
IOException
-
parseReader
- Throws:
IOException
-
parseStream
- Throws:
IOException
-
andThen
-
withCharset
-
onParsingReader
static <T> @NonNull TextParser<T> onParsingReader(@NonNull IOFunction<? super Reader, ? extends T> function)
-