JAXBTYPE - The JAXB type to be readpublic interface IJAXBReader<JAXBTYPE>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
IJAXBReader.IJAXBUnmarshaller<JAXBTYPE>
A special bi-consumer that additionally can throw a
JAXBException |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isReadSecure()
Check if secure reading is enabled.
|
default JAXBTYPE |
read(byte[] aXML)
Read a document from the specified byte array.
|
default JAXBTYPE |
read(byte[] aXML,
int nOfs,
int nLen)
Read a document from the specified byte array.
|
default JAXBTYPE |
read(ByteBuffer aXML)
Read a document from the specified byte buffer.
|
default JAXBTYPE |
read(char[] aXML)
Read a document from the specified char array.
|
default JAXBTYPE |
read(File aFile)
Read a document from the specified file.
|
default JAXBTYPE |
read(com.helger.commons.io.IHasInputStream aISP)
Read a document from the specified input stream provider.
|
JAXBTYPE |
read(IJAXBReader.IJAXBUnmarshaller<JAXBTYPE> aHandler)
Read a document using the passed handler.
|
default JAXBTYPE |
read(InputSource aInputSource)
Read a document from the specified input source.
|
default JAXBTYPE |
read(InputStream aIS)
Read a document from the specified input stream.
|
default JAXBTYPE |
read(com.helger.commons.io.resource.IReadableResource aResource)
Read a document from the specified resource.
|
default JAXBTYPE |
read(Node aNode)
Read a document from the specified DOM node.
|
default JAXBTYPE |
read(Path aPath)
Read a document from the specified Path.
|
default JAXBTYPE |
read(Reader aReader)
Read a document from the specified reader.
|
default JAXBTYPE |
read(com.helger.xml.serialize.read.SAXReaderSettings aSettings,
InputSource aInputSource)
Read a document from the specified input source using the specified SAX
reader settings.
|
default JAXBTYPE |
read(Source aSource)
Read a document from the specified source.
|
default JAXBTYPE |
read(String sXML)
Read a document from the specified String.
|
default JAXBTYPE |
read(XMLEventReader aReader)
Unmarshal root element to JAXB and return the resulting content tree.
|
default JAXBTYPE |
read(XMLStreamReader aReader)
Unmarshal root element to JAXB and return the resulting content tree.
|
boolean isReadSecure()
true if secure reading is enabled.@Nullable default JAXBTYPE read(@Nonnull InputSource aInputSource)
aInputSource - The source to read. May not be null.null in case reading fails.@Nullable default JAXBTYPE read(@Nonnull com.helger.xml.serialize.read.SAXReaderSettings aSettings, @Nonnull InputSource aInputSource)
aSettings - The SAX Settings to use.aInputSource - The source to read. May not be null.null in case reading fails.@Nullable default JAXBTYPE read(@Nonnull InputStream aIS)
aIS - The input stream to read. May not be null.null in case reading fails.@Nullable default JAXBTYPE read(@Nonnull Reader aReader)
aReader - The reader to read. May not be null.null in case reading fails.@Nullable default JAXBTYPE read(@Nonnull File aFile)
aFile - The file to read. May not be null.null in case reading fails.@Nullable default JAXBTYPE read(@Nonnull Path aPath)
aPath - The path to read. May not be null.null in case reading fails.@Nullable default JAXBTYPE read(@Nonnull com.helger.commons.io.resource.IReadableResource aResource)
aResource - The resource to read. May not be null.null in case reading fails.@Nullable default JAXBTYPE read(@Nonnull com.helger.commons.io.IHasInputStream aISP)
aISP - The input stream provider to read. May not be null.null in case reading fails.@Nullable default JAXBTYPE read(@Nonnull byte[] aXML)
aXML - The XML bytes to read. May not be null.null in case reading fails.@Nullable default JAXBTYPE read(@Nonnull byte[] aXML, @Nonnegative int nOfs, @Nonnegative int nLen)
aXML - The XML bytes to read. May not be null.nOfs - the offset in the buffer of the first byte to read.nLen - the maximum number of bytes to read from the buffer.null in case reading fails.@Nullable default JAXBTYPE read(@Nonnull ByteBuffer aXML)
aXML - The XML bytes to read. May not be null.null in case reading fails.@Nullable default JAXBTYPE read(@Nonnull String sXML)
sXML - The XML string to read. May not be null.null in case reading fails.@Nullable default JAXBTYPE read(@Nonnull char[] aXML)
aXML - The XML string to read. May not be null.null in case reading fails.@Nullable JAXBTYPE read(@Nonnull IJAXBReader.IJAXBUnmarshaller<JAXBTYPE> aHandler)
aHandler - The unmarshalling handler. May not be null.null in case reading fails.@Nullable default JAXBTYPE read(@Nonnull Source aSource)
aSource - The source to read. May not be null.null in case reading fails.@Nullable default JAXBTYPE read(@Nonnull Node aNode)
aNode - The DOM node to read. May not be null.null in case reading fails.@Nullable default JAXBTYPE read(@Nonnull XMLStreamReader aReader)
aReader - The parser to be read. May not be null.null in case reading fails.@Nullable default JAXBTYPE read(@Nonnull XMLEventReader aReader)
aReader - The parser to be read. May not be null.null in case reading fails.Copyright © 2015–2021 Philip Helger. All rights reserved.