DeflateCompressionSettings

Inheritance: java.lang.Object, com.aspose.zip.CompressionSettings

public class DeflateCompressionSettings extends CompressionSettings

Settings for Deflate compression method.

Deflate is a lossless data compression algorithm that uses a combination of the LZ77 algorithm and Huffman coding.

See standard here: https://tools.ietf.org/html/rfc1951

Constructors

ConstructorDescription
DeflateCompressionSettings()Initializes a new instance of the DeflateCompressionSettings class.

DeflateCompressionSettings()

public DeflateCompressionSettings()

Initializes a new instance of the DeflateCompressionSettings class.


    try (Archive archive = new Archive(new ArchiveEntrySettings(new DeflateCompressionSettings()))) {
        archive.createEntry("data.bin", "data.bin");
        archive.save(zipFile);
    }