Class XzStep

    • Field Detail

      • DEFAULT_COMPRESSION_LEVEL

        public static final int DEFAULT_COMPRESSION_LEVEL
        See Also:
        Constant Field Values
    • Constructor Detail

      • XzStep

        public XzStep​(ProjectFilesystem filesystem,
                      Path sourceFile,
                      Path outputPath,
                      int compressionLevel)
        Creates an XzStep to compress a file with the given XZ compression level and output path.

        Decompression will require up to 64MiB of RAM.

        Parameters:
        sourceFile - file to compress
        outputPath - the desired output path.
        compressionLevel - level of compression (from 0-9)
      • XzStep

        public XzStep​(ProjectFilesystem filesystem,
                      Path sourceFile,
                      int compressionLevel)
        Creates an XzStep to compress a file with XZ at a user supplied compression level .

        The destination file will be sourceFile with the added .xz extension.

        Decompression will require up to 64MiB of RAM.

        Parameters:
        sourceFile - file to compress
        compressionLevel - value from 0 to 9. Higher values result in better compression, but also need more time to compress and will need more RAM to decompress.