public class XJdfPackager extends AbstractXmlPackager
AbstractXmlPackager.CompressionLevelLOGGER| Constructor and Description |
|---|
XJdfPackager(OutputStream out)
Create a new XJdfPackager.
|
| Modifier and Type | Method and Description |
|---|---|
void |
packageXjdf(XJDF xjdf)
Packages an XML Document to a zipped binary output stream.
|
void |
packageXjdf(XJDF xjdf,
String docName)
Packages an XML Document to a zipped binary output stream.
|
protected byte[] |
parseDocument(Object document)
Parses an XML document into a byte array.
|
packageXml, setCompressionLevelpublic XJdfPackager(OutputStream out)
out - The underlying OutputStream to write the package to.public final void packageXjdf(XJDF xjdf) throws PackagerException, XPathExpressionException
xjdf - The XJDF document to package.PackagerException - If the XML document could not be packaged.XPathExpressionException - If the JobId of the XJDF could not be read.public final void packageXjdf(XJDF xjdf, String docName) throws PackagerException, XPathExpressionException
xjdf - The XJDF to package.docName - Document's name in the zipped package.PackagerException - If the XML document could not be packaged.XPathExpressionException - If the JobId of the XJDF could not be read.protected final byte[] parseDocument(Object document) throws Exception
AbstractXmlPackagerparseDocument in class AbstractXmlPackagerdocument - XML document to parse.Exception - If parsing fails.Copyright © 2016. All rights reserved.