Package com.aspose.zip
Class Bzip2CompressionSettings
- java.lang.Object
-
- com.aspose.zip.CompressionSettings
-
- com.aspose.zip.Bzip2CompressionSettings
-
public class Bzip2CompressionSettings extends CompressionSettings
Settings for Bzip2 compression within a ZIP archive.
bzip2 compresses files using the Burrows-Wheeler block sorting text compression algorithm, and Huffman coding.
-
-
Constructor Summary
Constructors Constructor Description Bzip2CompressionSettings()Initializes a new instance of theBzip2CompressionSettingsclass with default block size, equals to 9 hundred of kilobytes.Bzip2CompressionSettings(int blockSize)Initializes a new instance of theBzip2CompressionSettingsclass.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBlockSize()Block size in hundreds of kilobytes.-
Methods inherited from class com.aspose.zip.CompressionSettings
getBzip2, getDeflate, getEnhancedDeflate, getLzma, getPPMd, getStore, getXz, getZstd
-
-
-
-
Constructor Detail
-
Bzip2CompressionSettings
public Bzip2CompressionSettings(int blockSize)
Initializes a new instance of the
Bzip2CompressionSettingsclass.try (Archive archive = new Archive(new ArchiveEntrySettings(new Bzip2CompressionSettings(1)))) { archive.createEntry("data.bin", "data.bin"); archive.save(zipFile); }- Parameters:
blockSize- Block size in hundreds of kilobytes.- Throws:
com.aspose.ms.System.ArgumentOutOfRangeException- Block size is not between 1 and 9.
-
Bzip2CompressionSettings
public Bzip2CompressionSettings()
Initializes a new instance of the
Bzip2CompressionSettingsclass with default block size, equals to 9 hundred of kilobytes.try (Archive archive = new Archive(new ArchiveEntrySettings(new Bzip2CompressionSettings()))) { archive.createEntry("data.bin", "data.bin"); archive.save(zipFile); }
-
-