Class Compressor.Compression

  • Enclosing class:
    Compressor

    public static class Compressor.Compression
    extends Object
    • Constructor Detail

      • Compression

        public Compression​(CompressionType compressionType,
                           int uncompressedSize,
                           byte[] data)
    • Method Detail

      • type

        public CompressionType type()
        Returns the compression type used to compress this data. This will be either the requested compression or INCOMPRESSIBLE.
      • uncompressedSize

        public int uncompressedSize()
        Returns the uncompressed size of this data in bytes
      • data

        public byte[] data()
        Returns the uncompressed data in a buffer which gets owned by the caller