LzipArchiveSettings

Inheritance: java.lang.Object

public class LzipArchiveSettings

The class contains setting of particular lzip archive.

Constructors

ConstructorDescription
LzipArchiveSettings(int dictionarySize)Initializes a new instance of the LzipArchiveSettings with particular dictionary size.
LzipArchiveSettings(int dictionarySize, int maxMemberSize)Initializes a new instance of the LzipArchiveSettings with particular dictionary size.

Methods

MethodDescription
getCompressionThreads()Gets compression thread count.
getDictionarySize()Gets the size of dictionary which used by LZMA compression.
getFastSpeed()Gets the instance of the LzipArchiveSettings class with dictionary size equals to 1 megabyte in LZMA filter.
getFastestSpeed()Gets the instance of the LzipArchiveSettings class with dictionary size equals to 65536 bytes in LZMA filter.
getHighCompression()Gets the instance of the LzipArchiveSettings class with dictionary size equals to 32 megabytes in LZMA filter.
getMaxMemberSize()Gets the maximum size of one member in lzip archive presented in bytes.
getMaximumCompression()Gets the instance of the LzipArchiveSettings class with dictionary size equals to 64 megabytes in LZMA filter.
getNormal()Gets the instance of the LzipArchiveSettings class with dictionary size equals to 16 megabytes in LZMA filter.
setCompressionThreads(int value)Sets compression thread count.

LzipArchiveSettings(int dictionarySize)

public LzipArchiveSettings(int dictionarySize)

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

Parameters:

ParameterTypeDescription
dictionarySizeintdictionary size for LZMA compression in bytes

LzipArchiveSettings(int dictionarySize, int maxMemberSize)

public LzipArchiveSettings(int dictionarySize, int maxMemberSize)

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

Parameters:

ParameterTypeDescription
dictionarySizeintdictionary size for LZMA compression in bytes
maxMemberSizeintmaximum size of one member in lzip archive presented in bytes. Default value is 60 MB

getCompressionThreads()

public final int getCompressionThreads()

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

Returns: int - compression thread count

getDictionarySize()

public final int getDictionarySize()

Gets the size of dictionary which used by LZMA compression.

Returns: int - the size of dictionary which used by LZMA compression

getFastSpeed()

public static LzipArchiveSettings getFastSpeed()

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

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

getFastestSpeed()

public static LzipArchiveSettings getFastestSpeed()

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

Returns: LzipArchiveSettings - the instance of the LzipArchiveSettings class with dictionary size equals to 65536 bytes 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: LzipArchiveSettings - the instance of the LzipArchiveSettings class with dictionary size equals to 32 megabytes in LZMA filter

getMaxMemberSize()

public final long getMaxMemberSize()

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

Returns: long - the maximum size of one member in lzip archive presented in bytes

getMaximumCompression()

public static LzipArchiveSettings getMaximumCompression()

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

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

getNormal()

public static LzipArchiveSettings getNormal()

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

Returns: LzipArchiveSettings - the instance of the LzipArchiveSettings class with dictionary size equals to 16 megabytes in LZMA filter

setCompressionThreads(int value)

public final void setCompressionThreads(int value)

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

Parameters:

ParameterTypeDescription
valueintcompression thread count