public abstract class AbstractXmlPackager extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractXmlPackager.CompressionLevel
ZIP Compression Level
|
| Constructor and Description |
|---|
AbstractXmlPackager(byte[] xmlDoc,
String rootPath)
Custom constructor.
|
AbstractXmlPackager(String xmlPath)
Custom constructor.
|
| Modifier and Type | Method and Description |
|---|---|
AbstractXmlPackager.CompressionLevel |
getCompressionLevel()
Getter for compressionLevel attribute.
|
protected byte[] |
getXmlDoc()
Getter for xmlDoc attribute.
|
protected void |
packageXml(OutputStream os,
String docName)
Packages an XJDF Document to a zipped binary output stream.
|
protected File |
registerFile(String srcPath,
String targetDir) |
protected void |
registerFiles(String xPathAttribute,
String targetDir)
Check all attributes, defined by an xpath expression, for file URLs and update and register in fileMap.
|
void |
setCompressionLevel(AbstractXmlPackager.CompressionLevel compressionLevel)
Setter for compressionLevel attribute.
|
public AbstractXmlPackager(String xmlPath) throws Exception
xmlPath - Path to XJDF Document.Exceptionprotected byte[] getXmlDoc()
public AbstractXmlPackager.CompressionLevel getCompressionLevel()
public void setCompressionLevel(AbstractXmlPackager.CompressionLevel compressionLevel)
compressionLevel - the compressionLevel to setprotected void packageXml(OutputStream os, String docName) throws Exception
os - Target OutputStream where XJdfDocument is being packaged.Exceptionprotected void registerFiles(String xPathAttribute, String targetDir) throws PackagerException
xPathAttribute - XPath expression which defins a set of Attributes in XJDF Document.PackagerException - if files can not be read from the xJdf.protected File registerFile(String srcPath, String targetDir) throws PackagerException
PackagerExceptionCopyright © 2014. All Rights Reserved.