public class PrintTalkParser
extends org.cip4.lib.xjdf.xml.internal.AbstractXmlParser<org.cip4.lib.xprinttalk.schema.PrintTalk>
Constructor and Description |
---|
PrintTalkParser()
Private default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected org.cip4.lib.xjdf.xml.internal.AbstractXmlValidator<org.cip4.lib.xprinttalk.schema.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(org.cip4.lib.xprinttalk.schema.PrintTalk printTalk)
Parse a PrintTalk Object Tree to a byte array.
|
byte[] |
parsePrintTalk(org.cip4.lib.xprinttalk.schema.PrintTalk printTalk,
boolean skipValidation)
Parse a PrintTalk Object Tree to a byte array.
|
void |
parsePrintTalk(org.cip4.lib.xprinttalk.schema.PrintTalk printTalk,
OutputStream os)
Parse a PrintTalk Object Tree to a binary output stream.
|
void |
parsePrintTalk(org.cip4.lib.xprinttalk.schema.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(org.cip4.lib.xprinttalk.schema.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(org.cip4.lib.xprinttalk.schema.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(org.cip4.lib.xprinttalk.schema.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(org.cip4.lib.xprinttalk.schema.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<org.cip4.lib.xprinttalk.schema.PrintTalk>
protected final String getXmlHeader()
getXmlHeader
in class org.cip4.lib.xjdf.xml.internal.AbstractXmlParser<org.cip4.lib.xprinttalk.schema.PrintTalk>
protected final org.cip4.lib.xjdf.xml.internal.AbstractXmlValidator<org.cip4.lib.xprinttalk.schema.PrintTalk> createValidator()
createValidator
in class org.cip4.lib.xjdf.xml.internal.AbstractXmlParser<org.cip4.lib.xprinttalk.schema.PrintTalk>
Copyright © 2016. All rights reserved.