Package nbbrd.io.xml
Class Sax.Parser<T>
java.lang.Object
nbbrd.io.xml.Sax.Parser<T>
- All Implemented Interfaces:
nbbrd.io.FileParser<T>,nbbrd.io.text.TextParser<T>,Xml.Parser<T>
- Enclosing class:
Sax
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> @NonNull Sax.Parser<T> of(@NonNull ContentHandler handler, nbbrd.io.function.IOSupplier<? extends T> after) parseReader(@NonNull Reader resource) parseStream(@NonNull InputStream resource) parseStream(@NonNull InputStream resource, @NonNull Charset encoding) 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, parseResource, parseStreamMethods inherited from interface nbbrd.io.text.TextParser
asFileParser, asParser, asParser, parseChars, parsePath, parseProcess, parseProcess, parseProcess, parseReader, parseResource, parseStreamMethods inherited from interface nbbrd.io.xml.Xml.Parser
andThen, isIgnoreXXE
-
Constructor Details
-
Parser
public Parser()
-
-
Method Details
-
of
@NonNull public static <T> @NonNull Sax.Parser<T> of(@NonNull @NonNull ContentHandler handler, nbbrd.io.function.IOSupplier<? extends T> after) -
parseFile
- Specified by:
parseFilein interfacenbbrd.io.FileParser<T>- Specified by:
parseFilein interfaceXml.Parser<T>- Throws:
IOException
-
parseFile
@NonNull public T parseFile(@NonNull @NonNull File source, @NonNull @NonNull Charset encoding) throws IOException - Specified by:
parseFilein interfacenbbrd.io.text.TextParser<T>- Specified by:
parseFilein interfaceXml.Parser<T>- Throws:
IOException
-
parseReader
- Specified by:
parseReaderin interfacenbbrd.io.text.TextParser<T>- Throws:
IOException
-
parseStream
- Specified by:
parseStreamin interfacenbbrd.io.FileParser<T>- Throws:
IOException
-
parseStream
@NonNull public T parseStream(@NonNull @NonNull InputStream resource, @NonNull @NonNull Charset encoding) throws IOException - Specified by:
parseStreamin interfacenbbrd.io.text.TextParser<T>- Throws:
IOException
-