Class DeflateCompressionSettings
Namespace: Aspose.Zip.Saving
Assembly: Aspose.Zip.dll (25.2.0)
Settings needed for compressor or decompressor to work.
public class DeflateCompressionSettings : CompressionSettings
Inheritance
object ← CompressionSettings ← DeflateCompressionSettings
Inherited Members
CompressionSettings.Bzip2, CompressionSettings.Deflate, CompressionSettings.EnhancedDeflate, CompressionSettings.Store, CompressionSettings.Lzma, CompressionSettings.Xz, CompressionSettings.PPMd, CompressionSettings.Zstd, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
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
DeflateCompressionSettings()
Initializes a new instance of the Aspose.Zip.Saving.DeflateCompressionSettings class.
public DeflateCompressionSettings()
Examples
using (Archive archive = new Archive(new ArchiveEntrySettings(new DeflateCompressionSettings())))
{
archive.CreateEntry("data.bin", "data.bin");
archive.Save(zipFile);
}