public class XJdfPackager extends AbstractXmlPackager
AbstractXmlPackager.CompressionLevel| Constructor and Description |
|---|
XJdfPackager(OutputStream out)
Create a new XJdfPackager.
|
XJdfPackager(OutputStream out,
boolean withoutHierarchy)
Create a new XJdfPackager.
|
| Modifier and Type | Method and Description |
|---|---|
void |
packageXJdf(XJdfNavigator xJdfNavigator,
String docName,
URI rootUri)
Packages an XJDF Document to a zipped binary output stream.
|
void |
packageXJdf(XJdfNavigator xJdfNavigator,
URI rootUri)
Packages an XJDF Document to a zipped binary output stream.
|
void |
packageXml(XmlNavigator xJdfNavigator,
URI rootUri)
Packages an XML Document to a zipped binary output stream.
|
packageXml, setCompressionLevelpublic XJdfPackager(OutputStream out)
out - The underlying OutputStream to write the package to.public XJdfPackager(OutputStream out, boolean withoutHierarchy)
out - The underlying OutputStream to write the package to.withoutHierarchy - Put all files into the zip root.public final void packageXml(XmlNavigator xJdfNavigator, URI rootUri) throws PackagerException, XPathExpressionException
AbstractXmlPackagerpackageXml in class AbstractXmlPackagerxJdfNavigator - 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.public final void packageXJdf(XJdfNavigator xJdfNavigator, URI rootUri) throws PackagerException, XPathExpressionException
xJdfNavigator - The XjdfNavigator 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.public final void packageXJdf(XJdfNavigator xJdfNavigator, String docName, URI rootUri) throws PackagerException
xJdfNavigator - The XjdfNavigator containing the data.docName - Documents name in ZIP Package.rootUri - The root URI to use when dealing with relative URIs.PackagerException - If the XJDF could not be packaged.Copyright © 2016. All rights reserved.