public class XJdfPackager extends AbstractXmlPackager<XJDF>
AbstractXmlPackager.CompressionLevel| Constructor and Description |
|---|
XJdfPackager(java.io.OutputStream out)
Create a new XJdfPackager.
|
XJdfPackager(java.nio.file.Path zipPath,
java.io.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,
java.lang.String docName)
Packages an XML Document to a zipped binary output stream.
|
protected byte[] |
parseDocument(XJDF xjdf)
Parses an XML document into a byte array.
|
packageXml, setCompressionLevel, withZipPathpublic XJdfPackager(java.io.OutputStream out)
out - The underlying OutputStream to write the package to.public XJdfPackager(java.nio.file.Path zipPath,
java.io.OutputStream out)
zipPath - The path to an existing archive.out - The underlying OutputStream to write the package to.public final void packageXjdf(XJDF xjdf) throws PackagerException
xjdf - The XJDF document to package.PackagerException - If the XML document could not be packaged.public final void packageXjdf(XJDF xjdf, java.lang.String docName) throws PackagerException
xjdf - The XJDF to package.docName - Document's name in the zipped package.PackagerException - If the XML document could not be packaged.protected final byte[] parseDocument(XJDF xjdf) throws java.lang.Exception
AbstractXmlPackagerparseDocument in class AbstractXmlPackager<XJDF>xjdf - XML document to parse.java.lang.Exception - If parsing fails.