Class Bzip2CompressionSettings
이름 공간 : Aspose.Zip.Saving 모임: Aspose.Zip.dll (25.5.0)
작업을 위해 필요한 압축기 또는 압축기 설정.
public class Bzip2CompressionSettings : CompressionSettings
Inheritance
object ← CompressionSettings ← Bzip2CompressionSettings
상속 회원들
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
bzip2는 Burrows-Wheeler 블록 텍스트 압축 알고리즘을 사용하여 파일을 압축하고 Huffman 코딩을 사용합니다.더 보기: https://en.wikipedia.org/wiki/Bzip2
Constructors
Bzip2CompressionSettings(이트)
Aspose.Zip.Saving.Bzip2CompressionSettings 클래스의 새로운 예를 시작합니다.
public Bzip2CompressionSettings(int blockSize)
Parameters
blockSize
int
블록 크기 수백 킬로비트.
Examples
using (Archive archive = new Archive(new ArchiveEntrySettings(new Bzip2CompressionSettings(1))))
{
archive.CreateEntry("data.bin", "data.bin");
archive.Save(zipFile);
}
Exceptions
블록 크기는 1과 9 사이가 아닙니다.
Bzip2CompressionSettings()
기본 블록 크기로 Aspose.Zip.Saving.Bzip2CompressionSettings 클래스의 새로운 예를 시작, 9 백 킬로비트에 해당합니다.
public Bzip2CompressionSettings()
Examples
using (Archive archive = new Archive(new ArchiveEntrySettings(new Bzip2CompressionSettings())))
{
archive.CreateEntry("data.bin", "data.bin");
archive.Save(zipFile);
}
Properties
BlockSize
블록 크기 수백 킬로비트.
public int BlockSize { get; }