Class XarBzip2CompressionSettings


  • public class XarBzip2CompressionSettings
    extends XarCompressionSettings

    Settings for Bzip2 compression method.

    • Constructor Detail

      • XarBzip2CompressionSettings

        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:
        blockSize - block size in hundreds of kilobytes
        Throws:
        com.aspose.ms.System.ArgumentOutOfRangeException - Block size is not between 1 and 9.
      • XarBzip2CompressionSettings

        public XarBzip2CompressionSettings()

        Initializes a new instance of the XarBzip2CompressionSettings class with default block size, equals to 9 hundred of kilobytes.

    • Method Detail

      • getBlockSize

        public final int getBlockSize()

        Block size in hundreds of kilobytes.

        Returns:
        block size in hundreds of kilobytes