Class LzipArchiveSettings


  • public class LzipArchiveSettings
    extends Object

    The class contains setting of a particular lzip archive.

    • Constructor Detail

      • LzipArchiveSettings

        public LzipArchiveSettings​(int dictionarySize)

        Initializes a new instance of the LzipArchiveSettings with particular dictionary size.

        Parameters:
        dictionarySize - dictionary size for LZMA compression in bytes
      • LzipArchiveSettings

        public LzipArchiveSettings​(int dictionarySize,
                                   int maxMemberSize)

        Initializes a new instance of the LzipArchiveSettings with particular dictionary size.

        Parameters:
        dictionarySize - dictionary size for LZMA compression in bytes
        maxMemberSize - Maximum size of one member in lzip archive presented in bytes. The default value is 60 MB.
    • Method Detail

      • getFastestSpeed

        public static LzipArchiveSettings getFastestSpeed()

        Gets the instance of the LzipArchiveSettings class with dictionary size equals to 65536 bytes in LZMA filter.

        Returns:
        the instance of the LzipArchiveSettings class with dictionary size equals to 65536 bytes in LZMA filter
      • getFastSpeed

        public static LzipArchiveSettings getFastSpeed()

        Gets the instance of the LzipArchiveSettings class with dictionary size equals to 1 megabyte in LZMA filter.

        Returns:
        the instance of the LzipArchiveSettings class with dictionary size equals to 1 megabyte in LZMA filter
      • getHighCompression

        public static LzipArchiveSettings getHighCompression()

        Gets the instance of the LzipArchiveSettings class with dictionary size equals to 32 megabytes in LZMA filter.

        Returns:
        the instance of the LzipArchiveSettings class with dictionary size equals to 32 megabytes in LZMA filter
      • getMaximumCompression

        public static LzipArchiveSettings getMaximumCompression()

        Gets the instance of the LzipArchiveSettings class with dictionary size equals to 64 megabytes in LZMA filter.

        Returns:
        the instance of the LzipArchiveSettings class with dictionary size equals to 64 megabytes in LZMA filter
      • getDictionarySize

        public final int getDictionarySize()

        Gets the size of dictionary which used by LZMA compression.

        Returns:
        the size of dictionary which used by LZMA compression
      • getMaxMemberSize

        public final long getMaxMemberSize()

        Gets the maximum size of one member in lzip archive presented in bytes.

        Returns:
        the maximum size of one member in lzip archive presented in bytes
      • getCompressionThreads

        public final int getCompressionThreads()

        Gets compression thread count. If the value is greater than 1, multithreading compression will be used.

        Returns:
        compression thread count
        Throws:
        com.aspose.ms.System.ArgumentOutOfRangeException - The number of threads is more than 100.

        Do not set this number more than CPU cores.

      • setCompressionThreads

        public final void setCompressionThreads​(int value)

        Sets compression thread count. If the value is greater than 1, multithreading compression will be used.

        Parameters:
        value - compression thread count
        Throws:
        com.aspose.ms.System.ArgumentOutOfRangeException - The number of threads is more than 100.

        Do not set this number more than CPU cores.