Class Bzip2CompressionSettings
De naam: Aspose.Zip.Saving Verzameling: Aspose.Zip.dll (25.5.0)
De instellingen die nodig zijn voor de compressor of decompressor om te werken.
public class Bzip2CompressionSettings : CompressionSettings
Inheritance
object ← CompressionSettings ← Bzip2CompressionSettings
Geëerbiede leden
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 compresses bestanden met behulp van de Burrows-Wheeler blok sorteren tekst compressie algoritme, en Huffman coderen. zie meer: https://en.wikipedia.org/wiki/Bzip2
Constructors
Bzip2CompressionSettings(Int)
Initialiseert een nieuwe instantie van de Aspose.Zip.Saving.Bzip2CompressionSettings klasse.
public Bzip2CompressionSettings(int blockSize)
Parameters
blockSize
int
Block grootte in honderden kilobytes.
Examples
using (Archive archive = new Archive(new ArchiveEntrySettings(new Bzip2CompressionSettings(1))))
{
archive.CreateEntry("data.bin", "data.bin");
archive.Save(zipFile);
}
Exceptions
De grootte van de blok is niet tussen 1 en 9.
Bzip2CompressionSettings()
Initialiseert een nieuwe instantie van de Aspose.Zip.Saving.Bzip2CompressionSettings klasse met standaard blokgrootte, gelijk aan 9 honderd kilobytes.
public Bzip2CompressionSettings()
Examples
using (Archive archive = new Archive(new ArchiveEntrySettings(new Bzip2CompressionSettings())))
{
archive.CreateEntry("data.bin", "data.bin");
archive.Save(zipFile);
}
Properties
BlockSize
Block grootte in honderden kilobytes.
public int BlockSize { get; }