public class XJdfParser extends AbstractXmlParser<XJDF>
| Modifier and Type | Method and Description |
|---|---|
static XJdfParser |
newInstance()
Factory method for getting a new XJdfParser instance.
|
XJDF |
parseStream(InputStream is)
Parse a binary input stream to a XJDF Object Tree.
|
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.
|
parseXml, parseXmlpublic static XJdfParser newInstance() throws JAXBException
JAXBExceptionpublic void parseXJdf(XJDF xJdf, OutputStream os) throws Exception
xJdf - XJDF Object Tree for parsing.os - Target OutputStream where XJdfDocument is being parsed.ValidationException - Is thrown in case XJDF is not valid and validation process is not being skipped.Exception - Is thrown in case an exception occurs.public void parseXJdf(XJDF xJdf, OutputStream os, boolean skipValidation) throws Exception
xJdf - XJDF Object Tree for parsing.os - Target OutputStream where XJdfDocument is being parsed.skipValidation - Indicates whether or not validation has to be skipped.ValidationException - Is thrown in case XJDF is not valid and validation process is not being skipped.Exception - Is thrown in case an exception occurs.public XJDF parseStream(InputStream is) throws Exception
parseStream in class AbstractXmlParser<XJDF>is - Binary XJDF Input Stream for parsing.Exception - Is thrown in case an exception occurs.Copyright © 2012. All Rights Reserved.