Class Bzip2CompressionSettings
İsim alanı : Aspose.Zip.Saving Toplama: Aspose.Zip.dll (25.5.0)
Kompresör veya dekompresör çalışmak için gerekli ayarlar.
public class Bzip2CompressionSettings : CompressionSettings
Inheritance
object ← CompressionSettings ← Bzip2CompressionSettings
mirasçı üyeleri
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 dosyaları Burrows-Wheeler blok sınıflandırma metin sıkıştırma algoritması ve Huffman kodlama kullanılarak sıkıştırır. daha fazlasını görün: https://en.wikipedia.org/wiki/Bzip2
Constructors
Bzip2CompressionSettings(int ile)
Aspose.Zip.Saving.Bzip2CompressionSettings sınıfının yeni bir örneğini başlatır.
public Bzip2CompressionSettings(int blockSize)
Parameters
blockSize
int
Blok boyutu yüzlerce kilobittir.
Examples
using (Archive archive = new Archive(new ArchiveEntrySettings(new Bzip2CompressionSettings(1))))
{
archive.CreateEntry("data.bin", "data.bin");
archive.Save(zipFile);
}
Exceptions
Blok boyutu 1 ile 9 arasında değildir.
Bzip2CompressionSettings()
Aspose.Zip.Saving.Bzip2CompressionSettings sınıfının yeni bir örneğini varsayılan blok boyutu ile başlatır, 9 yüz kilobit eşittir.
public Bzip2CompressionSettings()
Examples
using (Archive archive = new Archive(new ArchiveEntrySettings(new Bzip2CompressionSettings())))
{
archive.CreateEntry("data.bin", "data.bin");
archive.Save(zipFile);
}
Properties
BlockSize
Blok boyutu yüzlerce kilobittir.
public int BlockSize { get; }