Class AbstractMultiDecompress

    • Field Detail

      • m_RegExp

        protected BaseRegExp m_RegExp
        the regular expression that the filenames must match to be extracted.
      • m_InvertMatching

        protected boolean m_InvertMatching
        invert matching sense.
      • m_CreateDirectories

        protected boolean m_CreateDirectories
        whether to restore the directory structure.
      • m_BufferSize

        protected int m_BufferSize
        the buffer size to use.
    • Constructor Detail

      • AbstractMultiDecompress

        public AbstractMultiDecompress()
    • Method Detail

      • setOutputDir

        public void setOutputDir​(PlaceholderDirectory value)
        Sets output directory to use.
        Parameters:
        value - the directory
      • getOutputDir

        public PlaceholderDirectory getOutputDir()
        Returns the alternative output directory to use.
        Returns:
        the directory
      • outputDirTipText

        public String outputDirTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setRegExp

        public void setRegExp​(BaseRegExp value)
        Sets the regular expression that the filenames must match.
        Parameters:
        value - the regular expression
      • getRegExp

        public BaseRegExp getRegExp()
        Returns the regular expression that the filenames must match.
        Returns:
        the regular expression
      • regExpTipText

        public String regExpTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setInvertMatching

        public void setInvertMatching​(boolean value)
        Sets whether to invert the matching sense of the regular expression.
        Parameters:
        value - true if the matching sense is to be inverted
      • getInvertMatching

        public boolean getInvertMatching()
        Returns whether to invert the matching sense of the regular expression.
        Returns:
        true if the matching sense is to be inverted
      • invertMatchingTipText

        public String invertMatchingTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setCreateDirectories

        public void setCreateDirectories​(boolean value)
        Sets whether to restore the directory structure from the archive.
        Parameters:
        value - true if the directory structure is to be restored
      • getCreateDirectories

        public boolean getCreateDirectories()
        Returns whether to restore the directory structure from the archive.
        Returns:
        true if the directory structure will be restored
      • createDirectoriesTipText

        public String createDirectoriesTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setBufferSize

        public void setBufferSize​(int value)
        Sets the buffer size for the stream.
        Parameters:
        value - the size in bytes
      • getBufferSize

        public int getBufferSize()
        Returns the buffer size for the stream.
        Returns:
        the size in bytes
      • bufferSizeTipText

        public String bufferSizeTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • accepts

        public Class[] accepts()
        Returns the class that the consumer accepts.
        Returns:
        the accepted input
      • generates

        public Class[] generates()
        Returns the class of objects that it generates.
        Returns:
        the generated output
      • decompress

        protected abstract List<File> decompress​(File inFile,
                                                 MessageCollection errors)
        Decompresses the archive.
        Parameters:
        inFile - the archive to decompress
        errors - for storing any error output
        Returns:
        the decompressed files (full paths)
      • doExecute

        protected String doExecute()
        Performs the actual transformation.
        Specified by:
        doExecute in class AbstractActor
        Returns:
        null if everything is fine, otherwise error message