Package org.cip4.lib.xjdf.xml
Class XJdfUnpackager
java.lang.Object
org.cip4.lib.xjdf.xml.internal.AbstractXmlUnpackager
org.cip4.lib.xjdf.xml.XJdfUnpackager
Unpackaging logic for XJDF Packages.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String[]Defines the file extension of the master file.Returns the XJDF Document covered by the XJDFNavigator.final XJdfNavigatorgetXJdfDocument(boolean namespaceAware) Returns the XJDF Document covered by the XJDFNavigator.unpackageXJdf(String targetDir) Unpackage an XJDF Package to a target directory.Unpackage an XJDF Package to a temporary directory.unpackageXJdfTemp(String appName) Unpackage an XJDF Package to a temporary directory.Methods inherited from class org.cip4.lib.xjdf.xml.internal.AbstractXmlUnpackager
extractFile, findMasterDocument, findMasterDocumentPath, unpackageZip, unpackageZipTemp, unpackageZipTemp
-
Constructor Details
-
XJdfUnpackager
Custom constructor. Accepting a XJDF Package Path for initializing.- Parameters:
pathPackage- Path to XJDF Package.- Throws:
IOException
-
-
Method Details
-
getXJdfDocument
Returns the XJDF Document covered by the XJDFNavigator.- Returns:
- XJDF Document coverd by the XJDFNavigator.
- Throws:
Exception
-
getXJdfDocument
Returns the XJDF Document covered by the XJDFNavigator.- Parameters:
namespaceAware- Flag whether or not the navigator should be aware of the namespaces.- Returns:
- XJDF document covered by the XJDFNavigator.
- Throws:
Exception
-
unpackageXJdfTemp
Unpackage an XJDF Package to a temporary directory.- Returns:
- The path of the master document.
- Throws:
IOException
-
unpackageXJdfTemp
Unpackage an XJDF Package to a temporary directory.- Returns:
- The path of the master document.
- Throws:
IOException
-
unpackageXJdf
Unpackage an XJDF Package to a target directory.- Parameters:
targetDir- Target directory for unpackaging.- Returns:
- The path of the master document.
- Throws:
IOException
-
getMasterExtension
Description copied from class:AbstractXmlUnpackagerDefines the file extension of the master file.- Specified by:
getMasterExtensionin classAbstractXmlUnpackager- Returns:
- Array of master file extensions.
- See Also:
-