SevenZipLZMACompressionSettings
Inheritance: java.lang.Object, com.aspose.zip.SevenZipCompressionSettings
public class SevenZipLZMACompressionSettings extends SevenZipCompressionSettings
Settings for LZMA compression method within 7z archive.
The Lempel\u2013Ziv\u2013Markov chain algorithm (LZMA) is an algorithm used to perform lossless data compression. This algorithm uses a dictionary compression scheme somewhat similar to the LZ77 algorithm and features a high compression ratio and a variable compression-dictionary size.
See more: Lempel\u2013Ziv\u2013Markov chain algorithm
Constructors
Constructor | Description |
---|---|
SevenZipLZMACompressionSettings() |
Methods
Method | Description |
---|---|
getDictionarySize() | Dictionary (history buffer) size indicates how many bytes of the recently processed uncompressed data is kept in memory. |
getMethod() | Gets compression or decompression method. |
setDictionarySize(int value) | Dictionary (history buffer) size indicates how many bytes of the recently processed uncompressed data is kept in memory. |
SevenZipLZMACompressionSettings()
public SevenZipLZMACompressionSettings()
getDictionarySize()
public final int getDictionarySize()
Dictionary (history buffer) size indicates how many bytes of the recently processed uncompressed data is kept in memory. If not set, will be chosen accordingly to entry size.
The bigger the dictionary, the better the compression ratio usually is, but dictionaries bigger than the uncompressed data are waste of RAM.
Returns: int - dictionary (history buffer) size
getMethod()
public SevenZipCompressionMethod getMethod()
Gets compression or decompression method.
Returns: SevenZipCompressionMethod - compression or decompression method
setDictionarySize(int value)
public final void setDictionarySize(int value)
Dictionary (history buffer) size indicates how many bytes of the recently processed uncompressed data is kept in memory. If not set, will be chosen accordingly to entry size.
The bigger the dictionary, the better the compression ratio usually is, but dictionaries bigger than the uncompressed data are waste of RAM.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | dictionary (history buffer) size |