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 com.sun.xml.bind.marshaller.NamespacePrefixMapper |
getNamespacePrefixMapper()
Returns a new specific NamespacePrefixMapper implementation.
|
protected String |
getXmlHeader()
Returns the XML Header for marshaling.
|
static PrintTalkParser |
newInstance()
Factory method for getting a new XJdfParser instance.
|
protected PrintTalk |
parseBytes(byte[] bytes) |
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.
|
PrintTalk |
parseStream(InputStream is)
Parse a binary input stream to a PrintTalk Object Tree.
|
public PrintTalkParser()
throws JAXBException
JAXBException - Thrown in case a JAXBException occurs.public static PrintTalkParser newInstance()
public void parsePrintTalk(PrintTalk printTalk, OutputStream os) throws Exception
printTalk - PrintTalk Object Tree for parsing.os - Target OutputStream where PrintTalk Document is being parsed.ValidationException - Is thrown in case PrintTalk is not valid and validation process is not being skipped.Exception - Is thrown in case an exception occurs.public void parsePrintTalk(PrintTalk printTalk, OutputStream os, boolean skipValidation) throws Exception
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.ValidationException - Is thrown in case PrintTalk is not valid and validation process is not being skipped.Exception - Is thrown in case an exception occurs.public byte[] parsePrintTalk(PrintTalk printTalk) throws Exception
printTalk - PrintTalk Object Tree for parsing.Exception - Is thrown in case an exception occurs.public byte[] parsePrintTalk(PrintTalk printTalk, boolean skipValidation) throws Exception
printTalk - PrintTalk Object Tree for parsing.skipValidation - Skip validation.Exception - Is thrown in case an exception occurs.public PrintTalk parseStream(InputStream is) throws Exception
protected com.sun.xml.bind.marshaller.NamespacePrefixMapper getNamespacePrefixMapper()
getNamespacePrefixMapper in class org.cip4.lib.xjdf.xml.internal.AbstractXmlParser<PrintTalk>Copyright © 2013. All Rights Reserved.