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 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,
OutputStream os)
Parse a XJDF Object Tree to a binary output stream.
|
void |
parseXJdf(XJDF xJdf,
OutputStream os,
boolean skipValidation)
Parse a XJDF Object Tree to a binary output stream.
|
parseNode, parseNode, parseStream, parseXml, parseXml, parseXml, parseXmlpublic XJdfParser()
throws JAXBException
JAXBException - Thrown in case a JAXBException occurs.public final void parseXJdf(XJDF xJdf, OutputStream os) throws ParserConfigurationException, JAXBException, SAXException, IOException
xJdf - XJDF Object Tree for parsing.os - Target OutputStream where XJdfDocument is being parsed.ParserConfigurationException - Is thrown in case a serious configuration error occurs.JAXBException - Is thrown in case any error while un-/marshalling occurs.SAXException - Is thrown in case parsing an xml document fails.IOException - Is thrown in case any IO error occurs.public final void parseXJdf(XJDF xJdf, OutputStream os, boolean skipValidation) throws IOException, ParserConfigurationException, SAXException, JAXBException
xJdf - XJDF Object Tree for parsing.os - Target OutputStream where XJdfDocument is being parsed.skipValidation - Skip validation.IOException - Is thrown in case any IO error occurs.ParserConfigurationException - Is thrown in case a serious configuration error occurs.SAXException - Is thrown in case parsing an xml document fails.JAXBException - Is thrown in case any error while un-/marshalling occurs.public final byte[] parseXJdf(XJDF xJdf) throws ParserConfigurationException, IOException, SAXException, JAXBException
xJdf - XJDF Object Tree for parsing.ParserConfigurationException - Is thrown in case a serious configuration error occurs.IOException - Is thrown in case any IO error occurs.SAXException - Is thrown in case parsing an xml document fails.JAXBException - Is thrown in case any error while un-/marshalling occurs.public final byte[] parseXJdf(XJDF xJdf, boolean skipValidation) throws ParserConfigurationException, JAXBException, SAXException, IOException
xJdf - XJDF Object Tree for parsing.skipValidation - Skip validation.ParserConfigurationException - Is thrown in case a serious configuration error occurs.JAXBException - Is thrown in case any error while un-/marshalling occurs.SAXException - Is thrown in case parsing an xml document fails.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 String getXmlHeader()
AbstractXmlParsergetXmlHeader in class AbstractXmlParser<XJDF>protected final AbstractXmlValidator<XJDF> createValidator()
AbstractXmlParsercreateValidator in class AbstractXmlParser<XJDF>Copyright © 2016. All rights reserved.