Class DeflateCompressionSettings

Class DeflateCompressionSettings

Namespace: Aspose.Zip.Saving
Assembly: Aspose.Zip.dll (25.1.0)

Cài đặt cần thiết để bộ nén hoặc giải nén hoạt động.

public class DeflateCompressionSettings : CompressionSettings

Kế thừa

objectCompressionSettingsDeflateCompressionSettings

Các thành viên kế thừa

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()

Nhận xét

Deflate là một thuật toán nén dữ liệu không mất mát sử dụng sự kết hợp của thuật toán LZ77 và mã hóa Huffman.

Xem tiêu chuẩn tại đây: https://tools.ietf.org/html/rfc1951

Bộ tạo

DeflateCompressionSettings()

Khởi tạo một thể hiện mới của lớp Aspose.Zip.Saving.DeflateCompressionSettings.

public DeflateCompressionSettings()

Ví dụ

using (Archive archive = new Archive(new ArchiveEntrySettings(new DeflateCompressionSettings())))
{
    archive.CreateEntry("data.bin", "data.bin");                   
    archive.Save(zipFile);
}
 Tiếng Việt