Package org.cip4.lib.xjdf.xml
Class XJdfUnpackager
- java.lang.Object
-
- org.cip4.lib.xjdf.xml.internal.AbstractXmlUnpackager
-
- org.cip4.lib.xjdf.xml.XJdfUnpackager
-
public class XJdfUnpackager extends AbstractXmlUnpackager
Unpackaging logic for XJDF Packages.
-
-
Constructor Summary
Constructors Constructor Description XJdfUnpackager(java.lang.String pathPackage)Custom constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String[]getMasterExtension()Defines the file extension of the master file.XJdfNavigatorgetXJdfDocument()Returns the XJDF Document covered by the XJDFNavigator.XJdfNavigatorgetXJdfDocument(boolean namespaceAware)Returns the XJDF Document covered by the XJDFNavigator.java.lang.StringunpackageXJdf(java.lang.String targetDir)Unpackage an XJDF Package to a target directory.java.lang.StringunpackageXJdfTemp()Unpackage an XJDF Package to a temporary directory.java.lang.StringunpackageXJdfTemp(java.lang.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
-
-
-
-
Method Detail
-
getXJdfDocument
public XJdfNavigator getXJdfDocument() throws java.lang.Exception
Returns the XJDF Document covered by the XJDFNavigator.- Returns:
- XJDF Document coverd by the XJDFNavigator.
- Throws:
java.lang.Exception
-
getXJdfDocument
public final XJdfNavigator getXJdfDocument(boolean namespaceAware) throws java.lang.Exception
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:
java.lang.Exception
-
unpackageXJdfTemp
public java.lang.String unpackageXJdfTemp(java.lang.String appName) throws java.io.IOExceptionUnpackage an XJDF Package to a temporary directory.- Returns:
- The path of the master document.
- Throws:
java.io.IOException
-
unpackageXJdfTemp
public java.lang.String unpackageXJdfTemp() throws java.io.IOExceptionUnpackage an XJDF Package to a temporary directory.- Returns:
- The path of the master document.
- Throws:
java.io.IOException
-
unpackageXJdf
public java.lang.String unpackageXJdf(java.lang.String targetDir) throws java.io.IOExceptionUnpackage an XJDF Package to a target directory.- Parameters:
targetDir- Target directory for unpackaging.- Returns:
- The path of the master document.
- Throws:
java.io.IOException
-
getMasterExtension
protected java.lang.String[] 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:
AbstractXmlUnpackager.getMasterExtension()
-
-