public class XJdfParser extends AbstractXmlParser<XJDF>
| Constructor and Description |
|---|
XJdfParser()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected AbstractXmlValidator<XJDF> |
createValidator()
Create validator for validating documents.
|
protected com.sun.xml.bind.marshaller.NamespacePrefixMapper |
getNamespacePrefixMapper()
Returns a new specific NamespacePrefixMapper implementation.
|
protected java.lang.String |
getXmlHeader()
Returns the XML Header for marshaling.
|
byte[] |
parseXJdf(XJDF xJdf)
Parse a XJDF Object Tree to a byte array.
|
byte[] |
parseXJdf(XJDF xJdf,
boolean skipValidation)
Parse a XJDF Object Tree to a byte array.
|
void |
parseXJdf(XJDF xJdf,
java.io.OutputStream os)
Parse a XJDF Object Tree to a binary output stream.
|
void |
parseXJdf(XJDF xJdf,
java.io.OutputStream os,
boolean skipValidation)
Parse a XJDF Object Tree to a binary output stream.
|
parseNode, parseNode, parseStream, parseXml, parseXml, parseXml, parseXmlpublic XJdfParser()
throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException - Thrown in case a JAXBException occurs.public final void parseXJdf(XJDF xJdf, java.io.OutputStream os) throws javax.xml.parsers.ParserConfigurationException, javax.xml.bind.JAXBException, org.xml.sax.SAXException, java.io.IOException
xJdf - XJDF Object Tree for parsing.os - Target OutputStream where XJdfDocument is being parsed.javax.xml.parsers.ParserConfigurationException - Is thrown in case a serious configuration error occurs.javax.xml.bind.JAXBException - Is thrown in case any error while un-/marshalling occurs.org.xml.sax.SAXException - Is thrown in case parsing an xml document fails.java.io.IOException - Is thrown in case any IO error occurs.public final void parseXJdf(XJDF xJdf, java.io.OutputStream os, boolean skipValidation) throws java.io.IOException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, javax.xml.bind.JAXBException
xJdf - XJDF Object Tree for parsing.os - Target OutputStream where XJdfDocument is being parsed.skipValidation - Skip validation.java.io.IOException - Is thrown in case any IO error occurs.javax.xml.parsers.ParserConfigurationException - Is thrown in case a serious configuration error occurs.org.xml.sax.SAXException - Is thrown in case parsing an xml document fails.javax.xml.bind.JAXBException - Is thrown in case any error while un-/marshalling occurs.public final byte[] parseXJdf(XJDF xJdf) throws javax.xml.parsers.ParserConfigurationException, java.io.IOException, org.xml.sax.SAXException, javax.xml.bind.JAXBException
xJdf - XJDF Object Tree for parsing.javax.xml.parsers.ParserConfigurationException - Is thrown in case a serious configuration error occurs.java.io.IOException - Is thrown in case any IO error occurs.org.xml.sax.SAXException - Is thrown in case parsing an xml document fails.javax.xml.bind.JAXBException - Is thrown in case any error while un-/marshalling occurs.public final byte[] parseXJdf(XJDF xJdf, boolean skipValidation) throws javax.xml.parsers.ParserConfigurationException, javax.xml.bind.JAXBException, org.xml.sax.SAXException, java.io.IOException
xJdf - XJDF Object Tree for parsing.skipValidation - Skip validation.javax.xml.parsers.ParserConfigurationException - Is thrown in case a serious configuration error occurs.javax.xml.bind.JAXBException - Is thrown in case any error while un-/marshalling occurs.org.xml.sax.SAXException - Is thrown in case parsing an xml document fails.java.io.IOException - Is thrown in case any IO error occurs.protected final com.sun.xml.bind.marshaller.NamespacePrefixMapper getNamespacePrefixMapper()
AbstractXmlParsergetNamespacePrefixMapper in class AbstractXmlParser<XJDF>protected final java.lang.String getXmlHeader()
AbstractXmlParsergetXmlHeader in class AbstractXmlParser<XJDF>protected final AbstractXmlValidator<XJDF> createValidator()
AbstractXmlParsercreateValidator in class AbstractXmlParser<XJDF>