LzmaCompressionSettings
Inheritance: java.lang.Object, com.aspose.zip.CompressionSettings
public class LzmaCompressionSettings extends CompressionSettings
Settings for LZMA compression method.
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 |
---|---|
LzmaCompressionSettings() | Initializes a new instance of the LzmaCompressionSettings class with default dictionary size, equals to 16 megabytes. |
LzmaCompressionSettings()
public LzmaCompressionSettings()
Initializes a new instance of the LzmaCompressionSettings class with default dictionary size, equals to 16 megabytes.
try (Archive archive = new Archive(new ArchiveEntrySettings(new LzmaCompressionSettings()))) {
archive.createEntry("data.bin", "data.bin");
archive.save(zipFile);
}