Class GZIP

    • Constructor Detail

      • GZIP

        public GZIP()
    • Method Detail

      • outputTipText

        public String outputTipText()
        Returns the tip text for this property.
        Specified by:
        outputTipText in class AbstractSingleCompress
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • getDefaultExtension

        protected String getDefaultExtension()
        Returns the default extension that the compressed archive has, e.g., ".gz" for gzipped files.
        Specified by:
        getDefaultExtension in class AbstractSingleCompress
        Returns:
        the extension, including the dot
      • compress

        protected String compress​(File inFile,
                                  File outFile)
        Compresses the file.
        Specified by:
        compress in class AbstractSingleCompress
        Parameters:
        inFile - the uncompressed input file
        outFile - the compressed output file
        Returns:
        null if successfully compressed, otherwise error message
      • compress

        protected String compress​(byte[] inBytes,
                                  gnu.trove.list.TByteList outBytes)
        Compresses the bytes.
        Specified by:
        compress in class AbstractSingleCompress
        Parameters:
        inBytes - the uncompressed bytes
        outBytes - the compressed bytes
        Returns:
        null if successfully compressed, otherwise error message