Class GZip2Compressor<T extends java.nio.Buffer>

    • Constructor Detail

      • GZip2Compressor

        public GZip2Compressor​(int primitiveSize)
    • Method Detail

      • compress

        public boolean compress​(T pixelData,
                                java.nio.ByteBuffer compressed)
        Description copied from interface: ICompressor
        compress the buffer into the byte buffer. Attention enough space must already be allocated.
        Specified by:
        compress in interface ICompressor<T extends java.nio.Buffer>
        Overrides:
        compress in class GZipCompressor<T extends java.nio.Buffer>
        Parameters:
        pixelData - the buffer to compress.
        compressed - the compressed data
        Returns:
        true if the compression succeeded.
      • decompress

        public void decompress​(java.nio.ByteBuffer compressed,
                               T pixelData)
        Description copied from interface: ICompressor
        Decompress the byte buffer and restore the buffer from it, again enough space must already be allocated.
        Specified by:
        decompress in interface ICompressor<T extends java.nio.Buffer>
        Overrides:
        decompress in class GZipCompressor<T extends java.nio.Buffer>
        Parameters:
        compressed - the compressed data
        pixelData - the buffer to fill with the uncompressed data.
      • shuffle

        public byte[] shuffle​(byte[] byteArray)
      • unshuffle

        public byte[] unshuffle​(byte[] byteArray)