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, setDescriptorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContext, getDescriptor, setArguments, setContext, setDescriptorpublic 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 ImplementationIFinit in class AbstractImplementationInitializationFailedException - if arguments are wrong, invalid combined or missing.COMPRESSFROM,
COMPRESSIONLEVEL,
DELETESOURCE,
ENCODING,
EXPANDTO,
OVERWRITE,
RECURSIVE,
SEARCHPATTERN,
ZIPFILEpublic void execute()
throws ExecutableException
execute in interface ExecutableIFExecutableException - if an internal error occurs.public void terminate()
throws TerminationException
ExecutableIFterminate in interface ExecutableIFTerminationException - 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