Package nbbrd.io.xml
Class Stax.EventParser<T>
java.lang.Object
nbbrd.io.xml.Stax.EventParser<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.EventParser<T>flowOf(@NonNull Stax.FlowHandler<XMLEventReader, T> handler) parseReader(@NonNull Reader resource) parseReader(@NonNull IOSupplier<? extends Reader> source) parseStream(@NonNull InputStream resource) parseStream(@NonNull InputStream resource, @NonNull Charset encoding) parseStream(@NonNull IOSupplier<? extends InputStream> source) parseStream(@NonNull IOSupplier<? extends InputStream> source, @NonNull Charset encoding) static <T> @NonNull Stax.EventParser<T>valueOf(@NonNull Stax.ValueHandler<XMLEventReader, 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
asFileParser, asParser, asParser, parseChars, parsePath, parseResourceMethods inherited from interface nbbrd.io.xml.Xml.Parser
andThen, isIgnoreXXE
-
Constructor Details
-
EventParser
public EventParser()
-
-
Method Details
-
flowOf
@NonNull public static <T> @NonNull Stax.EventParser<T> flowOf(@NonNull @NonNull Stax.FlowHandler<XMLEventReader, T> handler) -
valueOf
@NonNull public static <T> @NonNull Stax.EventParser<T> valueOf(@NonNull @NonNull Stax.ValueHandler<XMLEventReader, T> handler) -
parseFile
- Specified by:
parseFilein interfaceFileParser<T>- Throws:
IOException
-
parseFile
@NonNull public T parseFile(@NonNull @NonNull File source, @NonNull @NonNull Charset encoding) throws IOException - Specified by:
parseFilein interfaceTextParser<T>- Throws:
IOException
-
parseReader
@NonNull public T parseReader(@NonNull @NonNull IOSupplier<? extends Reader> source) throws IOException - Specified by:
parseReaderin interfaceTextParser<T>- Throws:
IOException
-
parseStream
@NonNull public T parseStream(@NonNull @NonNull IOSupplier<? extends InputStream> source) throws IOException - Specified by:
parseStreamin interfaceFileParser<T>- Throws:
IOException
-
parseStream
@NonNull public T parseStream(@NonNull @NonNull IOSupplier<? extends InputStream> source, @NonNull @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
@NonNull public T parseStream(@NonNull @NonNull InputStream resource, @NonNull @NonNull Charset encoding) throws IOException - Specified by:
parseStreamin interfaceTextParser<T>- Throws:
IOException
-