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<PrintTalk> |
createValidator() |
protected com.sun.xml.bind.marshaller.NamespacePrefixMapper |
getNamespacePrefixMapper()
Returns a new specific NamespacePrefixMapper implementation.
|
protected 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,
OutputStream os)
Parse a PrintTalk Object Tree to a binary output stream.
|
void |
parsePrintTalk(PrintTalk printTalk,
OutputStream os,
boolean skipValidation)
Parse a PrintTalk Object Tree to a binary output stream.
|
public PrintTalkParser()
throws JAXBException
JAXBException - Thrown in case a JAXBException occurs.public final void parsePrintTalk(PrintTalk printTalk, OutputStream os) throws ParserConfigurationException, JAXBException, SAXException, IOException
printTalk - PrintTalk Object Tree for parsing.os - Target OutputStream where PrintTalk Document 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 parsePrintTalk(PrintTalk printTalk, OutputStream os, boolean skipValidation) throws IOException, ParserConfigurationException, SAXException, 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.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 byte[] parsePrintTalk(PrintTalk printTalk) throws ParserConfigurationException, IOException, SAXException, JAXBException
printTalk - PrintTalk Object Tree for parsing.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 byte[] parsePrintTalk(PrintTalk printTalk, boolean skipValidation) throws ParserConfigurationException, JAXBException, SAXException, IOException
printTalk - PrintTalk 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()
getNamespacePrefixMapper in class org.cip4.lib.xjdf.xml.internal.AbstractXmlParser<PrintTalk>protected final String getXmlHeader()
getXmlHeader in class org.cip4.lib.xjdf.xml.internal.AbstractXmlParser<PrintTalk>Copyright © 2016. All rights reserved.