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