Class LzipArchiveSettings
- java.lang.Object
-
- com.aspose.zip.LzipArchiveSettings
-
public class LzipArchiveSettings extends Object
The class contains setting of a particular lzip archive.
-
-
Constructor Summary
Constructors Constructor Description LzipArchiveSettings(int dictionarySize)Initializes a new instance of theLzipArchiveSettingswith particular dictionary size.LzipArchiveSettings(int dictionarySize, int maxMemberSize)Initializes a new instance of theLzipArchiveSettingswith particular dictionary size.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCompressionThreads()Gets compression thread count.intgetDictionarySize()Gets the size of dictionary which used by LZMA compression.static LzipArchiveSettingsgetFastestSpeed()Gets the instance of theLzipArchiveSettingsclass with dictionary size equals to 65536 bytes in LZMA filter.static LzipArchiveSettingsgetFastSpeed()Gets the instance of theLzipArchiveSettingsclass with dictionary size equals to 1 megabyte in LZMA filter.static LzipArchiveSettingsgetHighCompression()Gets the instance of theLzipArchiveSettingsclass with dictionary size equals to 32 megabytes in LZMA filter.static LzipArchiveSettingsgetMaximumCompression()Gets the instance of theLzipArchiveSettingsclass with dictionary size equals to 64 megabytes in LZMA filter.longgetMaxMemberSize()Gets the maximum size of one member in lzip archive presented in bytes.static LzipArchiveSettingsgetNormal()Gets the instance of theLzipArchiveSettingsclass with dictionary size equals to 16 megabytes in LZMA filter.voidsetCompressionThreads(int value)Sets compression thread count.
-
-
-
Constructor Detail
-
LzipArchiveSettings
public LzipArchiveSettings(int dictionarySize)
Initializes a new instance of the
LzipArchiveSettingswith 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
LzipArchiveSettingswith particular dictionary size.- Parameters:
dictionarySize- dictionary size for LZMA compression in bytesmaxMemberSize- 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
LzipArchiveSettingsclass with dictionary size equals to 65536 bytes in LZMA filter.- Returns:
- the instance of the
LzipArchiveSettingsclass with dictionary size equals to 65536 bytes in LZMA filter
-
getFastSpeed
public static LzipArchiveSettings getFastSpeed()
Gets the instance of the
LzipArchiveSettingsclass with dictionary size equals to 1 megabyte in LZMA filter.- Returns:
- the instance of the
LzipArchiveSettingsclass with dictionary size equals to 1 megabyte in LZMA filter
-
getNormal
public static LzipArchiveSettings getNormal()
Gets the instance of the
LzipArchiveSettingsclass with dictionary size equals to 16 megabytes in LZMA filter.- Returns:
- the instance of the
LzipArchiveSettingsclass with dictionary size equals to 16 megabytes in LZMA filter
-
getHighCompression
public static LzipArchiveSettings getHighCompression()
Gets the instance of the
LzipArchiveSettingsclass with dictionary size equals to 32 megabytes in LZMA filter.- Returns:
- the instance of the
LzipArchiveSettingsclass with dictionary size equals to 32 megabytes in LZMA filter
-
getMaximumCompression
public static LzipArchiveSettings getMaximumCompression()
Gets the instance of the
LzipArchiveSettingsclass with dictionary size equals to 64 megabytes in LZMA filter.- Returns:
- the instance of the
LzipArchiveSettingsclass 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.
-
-