public class Zip extends AbstractImplementation implements ExecutableIF
arguments, ctx, descriptor, NEW_LINE
Constructor and Description |
---|
Zip() |
Modifier and Type | Method and Description |
---|---|
void |
execute()
Performs the requests, set during initialize.
|
void |
extractArchive(java.io.File archive,
java.io.File destDir) |
void |
init()
Verifies input and initializes local variables.
|
void |
terminate()
Terminate the execution.
|
addAttributesToNameValueUnitArray, addAttributeToNameValueUnitArray, addStringValueToNameValueUnitArray, checkDirectoy, checkDirectoy, checkDirectoy, checkFile, checkFile, checkFile, checkIntValue, checkStringValue, compressNvuArray, createMessageFromPropertyFile, createMessageFromPropertyFile, createMessageFromPropertyFile, createTsUnionFromObject, deleteRowWithAttributes, getArguments, getContext, getDescriptor, getListFromProperty, getMandatoryProperty, getMandatoryProperty, getMandatoryPropertyAsInt, getMandatoryPropertyAsList, getMandatoryPropertyWithRuleException, getNvuArrayFromMap, getNvuArrayFromMap, getNvuObjectWithName, getNvuObjectWithName, getNvuObjectWithName, getOdsCacheFromProperty, getOptioanlPropertyAsInt, getOptionalProperty, getOptionalProperty, getOptionalProperty, getOptionalProperty, getOptionalPropertyAsBoolean, getOptionalPropertyAsBoolean, getOptionalPropertyAsBoolean, getOptionalPropertyAsList, makeUpperCaseKeyword, removeAttributeFromNameValueUnitArray, removeAttributeFromNameValueUnitArray, setArguments, setContext, setDescriptor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContext, getDescriptor, setArguments, setContext, setDescriptor
public void init() throws InitializationFailedException
Reads the arguments, if ommited, assings default values if defined, and converts them into the internal representation. Depending on the argument combination some ommited arguments are derived from others.
If either mandatory arguments are ommited, or arguments are semanticallly or syntactically wrong, an excetion is thrown.
init
in interface ImplementationIF
init
in class AbstractImplementation
InitializationFailedException
- if arguments are wrong, invalid combined or missing.COMPRESSFROM
,
COMPRESSIONLEVEL
,
DELETESOURCE
,
ENCODING
,
EXPANDTO
,
OVERWRITE
,
RECURSIVE
,
SEARCHPATTERN
,
ZIPFILE
public void execute() throws ExecutableException
execute
in interface ExecutableIF
ExecutableException
- if an internal error occurs.public void terminate() throws TerminationException
ExecutableIF
terminate
in interface ExecutableIF
TerminationException
- If error occureed.public void extractArchive(java.io.File archive, java.io.File destDir) throws java.io.IOException, ExecutableException
archive
- File zipfile.destDir
- File directory.java.io.IOException
- If problems with I/O.ExecutableException