Bzip2CompressionSettings.Bzip2CompressionSettings
Bzip2CompressionSettings(int)
Initializes a new instance of the Bzip2CompressionSettings class.
public Bzip2CompressionSettings(int blockSize)
| Parameter | Type | Description |
|---|---|---|
| blockSize | Int32 | Block size in hundreds of kilobytes. |
Exceptions
| exception | condition |
|---|---|
| ArgumentOutOfRangeException | Block size is not between 1 and 9. |
Examples
using (Archive archive = new Archive(new ArchiveEntrySettings(new Bzip2CompressionSettings(1))))
{
archive.CreateEntry("data.bin", "data.bin");
archive.Save(zipFile);
}
See Also
- class Bzip2CompressionSettings
- namespace Aspose.Zip.Saving
- assembly Aspose.Zip
Bzip2CompressionSettings()
Initializes a new instance of the Bzip2CompressionSettings class with default block size, equals to 9 hundred of kilobytes.
public Bzip2CompressionSettings()
Examples
using (Archive archive = new Archive(new ArchiveEntrySettings(new Bzip2CompressionSettings())))
{
archive.CreateEntry("data.bin", "data.bin");
archive.Save(zipFile);
}
See Also
- class Bzip2CompressionSettings
- namespace Aspose.Zip.Saving
- assembly Aspose.Zip