Package nbbrd.io.xml
Class Stax.StreamParser<T>
java.lang.Object
nbbrd.io.xml.Stax.StreamParser<T>
- All Implemented Interfaces:
FileParser<T>,TextParser<T>,Xml.Parser<T>
- Enclosing class:
- Stax
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> @NonNull Stax.StreamParser<T>flowOf(@NonNull Stax.FlowHandler<XMLStreamReader, T> handler) @NonNull Tparse(@NonNull XMLStreamReader input, @NonNull Closeable onClose) @NonNull T@NonNull T@NonNull TparseReader(@NonNull Reader resource) @NonNull TparseReader(@NonNull IOSupplier<? extends Reader> source) @NonNull TparseStream(@NonNull InputStream resource) @NonNull TparseStream(@NonNull InputStream resource, @NonNull Charset encoding) @NonNull TparseStream(@NonNull IOSupplier<? extends InputStream> source) @NonNull TparseStream(@NonNull IOSupplier<? extends InputStream> source, @NonNull Charset encoding) static <T> @NonNull Stax.StreamParser<T>valueOf(@NonNull Stax.ValueHandler<XMLStreamReader, T> handler) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface nbbrd.io.FileParser
parsePath, parseResourceMethods inherited from interface nbbrd.io.text.TextParser
parseChars, parsePath, parseResource, withCharsetMethods inherited from interface nbbrd.io.xml.Xml.Parser
andThen, isIgnoreXXE
-
Constructor Details
-
StreamParser
public StreamParser()
-
-
Method Details
-
flowOf
public static <T> @NonNull Stax.StreamParser<T> flowOf(@NonNull Stax.FlowHandler<XMLStreamReader, T> handler) -
valueOf
public static <T> @NonNull Stax.StreamParser<T> valueOf(@NonNull Stax.ValueHandler<XMLStreamReader, T> handler) -
parseFile
- Specified by:
parseFilein interfaceFileParser<T>- Throws:
IOException
-
parseFile
- Specified by:
parseFilein interfaceTextParser<T>- Throws:
IOException
-
parseReader
- Specified by:
parseReaderin interfaceTextParser<T>- Throws:
IOException
-
parseStream
- Specified by:
parseStreamin interfaceFileParser<T>- Throws:
IOException
-
parseStream
public @NonNull T parseStream(@NonNull IOSupplier<? extends InputStream> source, @NonNull Charset encoding) throws IOException - Specified by:
parseStreamin interfaceTextParser<T>- Throws:
IOException
-
parseReader
- Specified by:
parseReaderin interfaceTextParser<T>- Throws:
IOException
-
parseStream
- Specified by:
parseStreamin interfaceFileParser<T>- Throws:
IOException
-
parseStream
public @NonNull T parseStream(@NonNull InputStream resource, @NonNull Charset encoding) throws IOException - Specified by:
parseStreamin interfaceTextParser<T>- Throws:
IOException
-
parse
public @NonNull T parse(@NonNull XMLStreamReader input, @NonNull Closeable onClose) throws IOException - Throws:
IOException
-