Package nbbrd.io.xml.bind
Class Jaxb.Parser<T>
- java.lang.Object
-
- nbbrd.io.xml.bind.Jaxb.Parser<T>
-
- All Implemented Interfaces:
nbbrd.io.FileParser<T>,nbbrd.io.text.TextParser<T>,Xml.Parser<T>
- Enclosing class:
- Jaxb
public static final class Jaxb.Parser<T> extends Object implements Xml.Parser<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJaxb.Parser.Builder<T>
-
Constructor Summary
Constructors Constructor Description Parser()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> @NonNull Jaxb.Parser<T>of(@NonNull Class<T> type)static <T> @NonNull Jaxb.Parser<T>of(@NonNull JAXBContext context)@NonNull TparseFile(@NonNull File source)@NonNull TparseFile(@NonNull File source, @NonNull Charset encoding)@NonNull TparseReader(@NonNull Reader resource)@NonNull TparseStream(@NonNull InputStream resource)@NonNull TparseStream(@NonNull InputStream resource, @NonNull Charset encoding)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface nbbrd.io.text.TextParser
parseChars, parsePath, parseReader, parseResource, parseStream
-
Methods inherited from interface nbbrd.io.xml.Xml.Parser
andThen, isIgnoreXXE
-
-
-
-
Method Detail
-
of
public static <T> @NonNull Jaxb.Parser<T> of(@NonNull Class<T> type)
-
of
public static <T> @NonNull Jaxb.Parser<T> of(@NonNull JAXBContext context)
-
parseFile
public @NonNull T parseFile(@NonNull File source) throws IOException
- Specified by:
parseFilein interfacenbbrd.io.FileParser<T>- Throws:
IOException
-
parseFile
public @NonNull T parseFile(@NonNull File source, @NonNull Charset encoding) throws IOException
- Specified by:
parseFilein interfacenbbrd.io.text.TextParser<T>- Throws:
IOException
-
parseReader
public @NonNull T parseReader(@NonNull Reader resource) throws IOException
- Specified by:
parseReaderin interfacenbbrd.io.text.TextParser<T>- Throws:
IOException
-
parseStream
public @NonNull T parseStream(@NonNull InputStream resource) throws IOException
- Specified by:
parseStreamin interfacenbbrd.io.FileParser<T>- Throws:
IOException
-
parseStream
public @NonNull T parseStream(@NonNull InputStream resource, @NonNull Charset encoding) throws IOException
- Specified by:
parseStreamin interfacenbbrd.io.text.TextParser<T>- Throws:
IOException
-
-