public abstract class AbstractXmlUnpackager
extends java.lang.Object
| Constructor and Description |
|---|
AbstractXmlUnpackager(java.lang.String pathPackage)
Custom constructor.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
extractFile(java.lang.String relativePath)
Extracts a file from Package.
|
protected byte[] |
findMasterDocument()
Find the master document in package file.
|
protected java.lang.String |
findMasterDocumentPath()
Find the master document path in package file.
|
protected abstract java.lang.String[] |
getMasterExtension()
Defines the file extension of the master file.
|
protected java.lang.String |
unpackageZip(java.lang.String targetDir)
Unpackages a ZIP Package.
|
protected java.lang.String |
unpackageZipTemp()
Unpackages a ZIP Package to a temporarily directory..
|
protected java.lang.String |
unpackageZipTemp(java.lang.String appName)
Unpackages a ZIP Package to a temporarily directory.
|
public AbstractXmlUnpackager(java.lang.String pathPackage)
throws java.io.IOException
pathPackage - Path of the package.java.io.IOException - Is thrown in case an IOExcetion occurs.protected java.lang.String unpackageZipTemp()
throws java.io.IOException
java.io.IOExceptionprotected java.lang.String unpackageZipTemp(java.lang.String appName)
throws java.io.IOException
appName - Application name.java.io.IOExceptionprotected java.lang.String unpackageZip(java.lang.String targetDir)
throws java.io.IOException
targetDir - Target destionation.java.io.IOExceptionprotected java.lang.String findMasterDocumentPath()
protected byte[] findMasterDocument()
throws java.io.IOException
java.io.IOException - Is thrown in case an IOExcetion occurs.public byte[] extractFile(java.lang.String relativePath)
throws java.io.IOException
relativePath - The relative path of the file which should be extracted.java.io.IOExceptionprotected abstract java.lang.String[] getMasterExtension()