public class XJdfParser extends Object
| 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.
|
void |
parseXJdf(XJDF xJdf,
OutputStream os)
Parse a XJDF object to a binary output stream.
|
void |
parseXJdf(XJDF xJdf,
OutputStream os,
boolean skipValidation)
Parse a XJDF object to a binary output stream.
|
public static XJdfParser newInstance()
public void parseXJdf(XJDF xJdf, OutputStream os) throws Exception
xJdf - XJdf object 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 void parseXJdf(XJDF xJdf, OutputStream os, boolean skipValidation) throws Exception
xJdf - XJdf object 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
is - Binary xjdf input stream for parsing.Exception - Is thrown in case an exception occurs.Copyright © 2012. All Rights Reserved.