Class DeflateCompressionSettings
Namn på plats: Aspose.Zip.Saving Sammanfattning: Aspose.Zip.dll (25.5.0)
Inställningar som behövs för kompressorn eller dekompressorn att fungera.
public class DeflateCompressionSettings : CompressionSettings
Inheritance
object ← CompressionSettings ← DeflateCompressionSettings
Arvsmedlemmar
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 är en förlustlös datakompression algoritm som använder en kombination av LZ77-algoritmen och Huffman kodning.
Se standard här: https://tools.ietf.org/html/rfc1951
Constructors
DeflateCompressionSettings()
Initialiserar en ny instans av Aspose.Zip.Saving.DeflateCompressionSettings klass.
public DeflateCompressionSettings()
Examples
using (Archive archive = new Archive(new ArchiveEntrySettings(new DeflateCompressionSettings())))
{
archive.CreateEntry("data.bin", "data.bin");
archive.Save(zipFile);
}