public abstract class AbstractXmlPackager extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractXmlPackager.CompressionLevel
ZIP Compression Level.
|
| Constructor and Description |
|---|
AbstractXmlPackager(OutputStream out)
Create a new AbstractXmlPackager.
|
AbstractXmlPackager(OutputStream out,
boolean withoutHierarchy)
Create a new AbstractXmlPackager.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
packageXml(XmlNavigator xmlNavigator,
String docName,
URI rootUri)
Packages an XML document to a zipped binary output stream.
|
abstract void |
packageXml(XmlNavigator xmlNavigator,
URI rootUri)
Packages an XML Document to a zipped binary output stream.
|
void |
setCompressionLevel(AbstractXmlPackager.CompressionLevel compressionLevel)
Setter for compressionLevel attribute.
|
public AbstractXmlPackager(OutputStream out)
out - The underlying OutputStream to write the package to.public AbstractXmlPackager(OutputStream out, boolean withoutHierarchy)
out - The underlying OutputStream to write the package to.withoutHierarchy - Put all files into the zip root.public final void setCompressionLevel(AbstractXmlPackager.CompressionLevel compressionLevel)
compressionLevel - the compressionLevel to setpublic abstract void packageXml(XmlNavigator xmlNavigator, URI rootUri) throws PackagerException, XPathExpressionException
xmlNavigator - The XmlNavigator containing the data.rootUri - The root URI to use when dealing with relative URIs.PackagerException - If the XML document could not be packaged.XPathExpressionException - If the JobId of the XJDF could not be read.protected final void packageXml(XmlNavigator xmlNavigator, String docName, URI rootUri) throws PackagerException
xmlNavigator - XML Navigator which is being packaged.docName - File name of the document in the zip package.rootUri - The root URI to use when dealing with relative URIs.PackagerException - If the XML document could not be packaged.Copyright © 2016. All rights reserved.