Class Bzip2CompressionSettings
Der Name: Aspose.Zip.Saving Versammlung: Aspose.Zip.dll (25.5.0)
Die Einstellungen, die für den Kompressor oder den Decompressor benötigt werden, um zu arbeiten.
public class Bzip2CompressionSettings : CompressionSettings
Inheritance
object ← CompressionSettings ← Bzip2CompressionSettings
Vererbte Mitglieder
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 komprimiert Dateien mit dem Burrows-Wheeler Block Sortierung Text Kompression-Algorithmus, und Huffman Codierung. Mehr sehen: https://en.wikipedia.org/wiki/Bzip2
Constructors
Bzip2CompressionSettings(Int)
Initialisiert eine neue Instanz der Aspose.Zip.Saving.Bzip2CompressionSettings Klasse.
public Bzip2CompressionSettings(int blockSize)
Parameters
blockSize
int
Blockgröße in hundert Kilobiten.
Examples
using (Archive archive = new Archive(new ArchiveEntrySettings(new Bzip2CompressionSettings(1))))
{
archive.CreateEntry("data.bin", "data.bin");
archive.Save(zipFile);
}
Exceptions
Die Blockgröße liegt nicht zwischen 1 und 9.
Bzip2CompressionSettings()
Initialisiert eine neue Instanz der Aspose.Zip.Saving.Bzip2CompressionSettings Klasse mit Standardblockgröße, gleich 9 hundert Kilobytes.
public Bzip2CompressionSettings()
Examples
using (Archive archive = new Archive(new ArchiveEntrySettings(new Bzip2CompressionSettings())))
{
archive.CreateEntry("data.bin", "data.bin");
archive.Save(zipFile);
}
Properties
BlockSize
Blockgröße in hundert Kilobiten.
public int BlockSize { get; }