Package nbbrd.io.xml.bind
Class Jaxb.Parser<T>
- java.lang.Object
-
- nbbrd.io.xml.bind.Jaxb.Parser<T>
-
- All Implemented Interfaces:
FileParser<T>,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.Builder<T>builder()static <T> @NonNull Jaxb.Parser<T>of(@NonNull Class<T> type)static <T> @NonNull Jaxb.Parser<T>of(@NonNull JAXBContext context)TparseFile(File source)TparseFile(File source, Charset encoding)TparseReader(Reader resource)TparseStream(InputStream resource)TparseStream(InputStream resource, 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.FileParser
parsePath, parseResource, parseStream
-
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) throws IOException
- Throws:
IOException
-
of
public static <T> @NonNull Jaxb.Parser<T> of(@NonNull JAXBContext context) throws IOException
- Throws:
IOException
-
builder
public static <T> @NonNull Jaxb.Parser.Builder<T> builder()
-
parseFile
public T parseFile(File source) throws IOException
- Specified by:
parseFilein interfaceFileParser<T>- Throws:
IOException
-
parseFile
public T parseFile(File source, Charset encoding) throws IOException
- Specified by:
parseFilein interfaceTextParser<T>- Throws:
IOException
-
parseReader
public T parseReader(Reader resource) throws IOException
- Specified by:
parseReaderin interfaceTextParser<T>- Throws:
IOException
-
parseStream
public T parseStream(InputStream resource) throws IOException
- Specified by:
parseStreamin interfaceFileParser<T>- Throws:
IOException
-
parseStream
public T parseStream(InputStream resource, Charset encoding) throws IOException
- Specified by:
parseStreamin interfaceTextParser<T>- Throws:
IOException
-
-