|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.flow.core.AbstractActor
adams.flow.transformer.AbstractTransformer
adams.flow.transformer.AbstractMultiDecompress
public abstract class AbstractMultiDecompress
Ancestor for compression schemes that manage archives with multiple files (incl directory structure) like zip archives.
| Field Summary | |
|---|---|
protected int |
m_BufferSize
the buffer size to use. |
protected boolean |
m_CreateDirectories
whether to restore the directory structure. |
protected boolean |
m_InvertMatching
invert matching sense. |
protected PlaceholderDirectory |
m_OutputDir
the output directory. |
protected BaseRegExp |
m_RegExp
the regular expression that the filenames must match to be extracted. |
| Fields inherited from class adams.flow.transformer.AbstractTransformer |
|---|
BACKUP_INPUT, BACKUP_OUTPUT, m_InputToken, m_OutputToken |
| Fields inherited from class adams.flow.core.AbstractActor |
|---|
m_Annotations, m_BackupState, m_DetectedObjectVariables, m_DetectedVariables, m_ErrorHandler, m_Executed, m_Executing, m_FullName, m_Headless, m_Name, m_Parent, m_Root, m_Self, m_Skip, m_StopFlowOnError, m_StopMessage, m_Stopped, m_StorageHandler, m_VariablesUpdated |
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Fields inherited from interface adams.flow.core.Actor |
|---|
FILE_EXTENSION, FILE_EXTENSION_GZ |
| Constructor Summary | |
|---|---|
AbstractMultiDecompress()
|
|
| Method Summary | |
|---|---|
Class[] |
accepts()
Returns the class that the consumer accepts. |
String |
bufferSizeTipText()
Returns the tip text for this property. |
String |
createDirectoriesTipText()
Returns the tip text for this property. |
protected abstract Vector<File> |
decompress(File inFile,
StringBuilder result)
Decompresses the archive. |
void |
defineOptions()
Adds options to the internal list of options. |
protected String |
doExecute()
Performs the actual transformation. |
Class[] |
generates()
Returns the class of objects that it generates. |
int |
getBufferSize()
Returns the buffer size for the stream. |
boolean |
getCreateDirectories()
Returns whether to restore the directory structure from the archive. |
boolean |
getInvertMatching()
Returns whether to invert the matching sense of the regular expression. |
PlaceholderDirectory |
getOutputDir()
Returns the alternative output directory to use. |
String |
getQuickInfo()
Returns a quick info about the actor, which will be displayed in the GUI. |
BaseRegExp |
getRegExp()
Returns the regular expression that the filenames must match. |
String |
invertMatchingTipText()
Returns the tip text for this property. |
String |
outputDirTipText()
Returns the tip text for this property. |
String |
regExpTipText()
Returns the tip text for this property. |
void |
setBufferSize(int value)
Sets the buffer size for the stream. |
void |
setCreateDirectories(boolean value)
Sets whether to restore the directory structure from the archive. |
void |
setInvertMatching(boolean value)
Sets whether to invert the matching sense of the regular expression. |
void |
setOutputDir(PlaceholderDirectory value)
Sets output directory to use. |
void |
setRegExp(BaseRegExp value)
Sets the regular expression that the filenames must match. |
| Methods inherited from class adams.flow.transformer.AbstractTransformer |
|---|
backupState, execute, hasPendingOutput, input, output, postExecute, reset, restoreState, wrapUp |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debugLevelTipText, finishInit, getDebugLevel, getOptionManager, globalInfo, isDebugOn, newOptionManager, setDebugLevel, toCommandLine, toString |
| Methods inherited from class adams.core.ConsoleObject |
|---|
getDebugging, getSystemErr, getSystemOut |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface adams.flow.core.Actor |
|---|
cleanUp, compareTo, debug, destroy, equals, findVariables, getAnnotations, getDefaultName, getDetectedVariables, getErrorHandler, getFullName, getName, getNextSibling, getParent, getPreviousSibling, getRoot, getSkip, getStopFlowOnError, getStopMessage, getStorageHandler, getVariables, handleError, hasErrorHandler, hasStopMessage, index, isExecuted, isFinished, isHeadless, isStopped, setAnnotations, setErrorHandler, setHeadless, setName, setParent, setSkip, setStopFlowOnError, setUp, setVariables, sizeOf, stopExecution, stopExecution, variableChanged |
| Methods inherited from interface adams.core.AdditionalInformationHandler |
|---|
getAdditionalInformation |
| Methods inherited from interface adams.core.option.OptionHandler |
|---|
cleanUpOptions, getOptionManager |
| Field Detail |
|---|
protected PlaceholderDirectory m_OutputDir
protected BaseRegExp m_RegExp
protected boolean m_InvertMatching
protected boolean m_CreateDirectories
protected int m_BufferSize
| Constructor Detail |
|---|
public AbstractMultiDecompress()
| Method Detail |
|---|
public void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractActorpublic void setOutputDir(PlaceholderDirectory value)
value - the directorypublic PlaceholderDirectory getOutputDir()
public String outputDirTipText()
public void setRegExp(BaseRegExp value)
value - the regular expressionpublic BaseRegExp getRegExp()
public String regExpTipText()
public void setInvertMatching(boolean value)
value - true if the matching sense is to be invertedpublic boolean getInvertMatching()
public String invertMatchingTipText()
public void setCreateDirectories(boolean value)
value - true if the directory structure is to be restoredpublic boolean getCreateDirectories()
public String createDirectoriesTipText()
public void setBufferSize(int value)
value - the size in bytespublic int getBufferSize()
public String bufferSizeTipText()
public String getQuickInfo()
getQuickInfo in interface QuickInfoSupportergetQuickInfo in interface ActorgetQuickInfo in class AbstractActorpublic Class[] accepts()
public Class[] generates()
protected abstract Vector<File> decompress(File inFile,
StringBuilder result)
inFile - the archive to decompressresult - for storing any error output
protected String doExecute()
doExecute in class AbstractActor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||