public abstract class AbstractXmlParser<T> extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractXmlParser(JAXBContext jaxbContext)
Custom constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected T |
parseStream(InputStream is)
Parse a binary input stream to a object tree.
|
protected void |
parseXml(T obj,
OutputStream os)
Parse a object tree to a binary output stream.
|
protected void |
parseXml(T obj,
OutputStream os,
boolean skipValidation)
Parse a object tree to a binary output stream.
|
protected AbstractXmlParser(JAXBContext jaxbContext)
protected void parseXml(T obj, OutputStream os) throws Exception
object - 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.protected void parseXml(T obj, OutputStream os, boolean skipValidation) throws Exception
obj - Object tree 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.protected T 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.