Class Compressor.Compression

  • Enclosing class:
    Compressor

    public static class Compressor.Compression
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Compression​(CompressionType compressionType, int uncompressedSize, byte[] data)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] data()
      Returns the uncompressed data in a buffer which gets owned by the caller
      CompressionType type()
      Returns the compression type used to compress this data.
      int uncompressedSize()
      Returns the uncompressed size of this data in bytes
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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