XarBzip2CompressionSettings

Inheritance: java.lang.Object, com.aspose.zip.XarCompressionSettings

public class XarBzip2CompressionSettings extends XarCompressionSettings

Settings for Bzip2 compression method.

Constructors

ConstructorDescription
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

MethodDescription
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:

ParameterTypeDescription
blockSizeintblock 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