public class PrintTalkParser extends org.cip4.lib.xjdf.xml.internal.AbstractXmlParser<PrintTalk>
| Constructor and Description |
|---|
PrintTalkParser()
Private default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.cip4.lib.xjdf.xml.internal.AbstractXmlValidator |
createValidator() |
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[] |
parsePrintTalk(PrintTalk printTalk)
Parse a PrintTalk Object Tree to a byte array.
|
byte[] |
parsePrintTalk(PrintTalk printTalk,
boolean skipValidation)
Parse a PrintTalk Object Tree to a byte array.
|
void |
parsePrintTalk(PrintTalk printTalk,
java.io.OutputStream os)
Parse a PrintTalk Object Tree to a binary output stream.
|
void |
parsePrintTalk(PrintTalk printTalk,
java.io.OutputStream os,
boolean skipValidation)
Parse a PrintTalk Object Tree to a binary output stream.
|
public PrintTalkParser()
throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException - Thrown in case a JAXBException occurs.public final void parsePrintTalk(PrintTalk printTalk, java.io.OutputStream os) throws javax.xml.parsers.ParserConfigurationException, javax.xml.bind.JAXBException, org.xml.sax.SAXException, java.io.IOException
printTalk - PrintTalk Object Tree for parsing.os - Target OutputStream where PrintTalk Document 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 parsePrintTalk(PrintTalk printTalk, java.io.OutputStream os, boolean skipValidation) throws java.io.IOException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, javax.xml.bind.JAXBException
printTalk - PrintTalk Object Tree for parsing.os - Target OutputStream where PrintTalk Document is being parsed.skipValidation - Indicates whether or not validation has to be skipped.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 byte[] parsePrintTalk(PrintTalk printTalk) throws javax.xml.parsers.ParserConfigurationException, java.io.IOException, org.xml.sax.SAXException, javax.xml.bind.JAXBException
printTalk - PrintTalk Object Tree for parsing.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 byte[] parsePrintTalk(PrintTalk printTalk, boolean skipValidation) throws javax.xml.parsers.ParserConfigurationException, javax.xml.bind.JAXBException, org.xml.sax.SAXException, java.io.IOException
printTalk - PrintTalk 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()
getNamespacePrefixMapper in class org.cip4.lib.xjdf.xml.internal.AbstractXmlParser<PrintTalk>protected final java.lang.String getXmlHeader()
getXmlHeader in class org.cip4.lib.xjdf.xml.internal.AbstractXmlParser<PrintTalk>protected final org.cip4.lib.xjdf.xml.internal.AbstractXmlValidator createValidator()
createValidator in class org.cip4.lib.xjdf.xml.internal.AbstractXmlParser<PrintTalk>