XarBzip2CompressionSettings
Contents
[
Hide
]Inheritance: java.lang.Object, com.aspose.zip.XarCompressionSettings
public class XarBzip2CompressionSettings extends XarCompressionSettings
Settings for Bzip2 compression method.
Constructors
Constructor | Description |
---|---|
XarBzip2CompressionSettings(int blockSize) | Initializes a new instance of the XarBzip2CompressionSettings class. |
XarBzip2CompressionSettings() | Initializes a new instance of the XarBzip2CompressionSettings class with default block size, equals to 9 hundred of kilobytes. |
Methods
Method | Description |
---|---|
getBlockSize() | Block size in hundreds of kilobytes. |
XarBzip2CompressionSettings(int blockSize)
public XarBzip2CompressionSettings(int blockSize)
Initializes a new instance of the XarBzip2CompressionSettings class.
try (XarArchive archive = new XarArchive()) {
archive.createEntry("data.bin", "data.bin", false, new XarBzip2CompressionSettings(1));
archive.save("archive.xar");
}
Parameters:
Parameter | Type | Description |
---|---|---|
blockSize | int | block size in hundreds of kilobytes |
XarBzip2CompressionSettings()
public XarBzip2CompressionSettings()
Initializes a new instance of the XarBzip2CompressionSettings class with default block size, equals to 9 hundred of kilobytes.
getBlockSize()
public final int getBlockSize()
Block size in hundreds of kilobytes.
Returns: int - block size in hundreds of kilobytes