Class HCompressor.ByteHCompressor

java.lang.Object
nom.tam.fits.compression.algorithm.hcompress.HCompressor<ByteBuffer>
nom.tam.fits.compression.algorithm.hcompress.HCompressor.ByteHCompressor
All Implemented Interfaces:
ICompressor<ByteBuffer>
Enclosing class:
HCompressor<T extends Buffer>

public static class HCompressor.ByteHCompressor extends HCompressor<ByteBuffer>
  • Constructor Details

  • Method Details

    • compress

      public boolean compress(ByteBuffer buffer, ByteBuffer compressed)
      Description copied from interface: ICompressor
      compress the buffer into the byte buffer. Attention enough space must already be allocated.
      Parameters:
      buffer - the buffer to compress.
      compressed - the compressed data
      Returns:
      true if the compression succeeded.
    • decompress

      public void decompress(ByteBuffer compressed, ByteBuffer buffer)
      Description copied from interface: ICompressor
      Decompress the byte buffer and restore the buffer from it, again enough space must already be allocated.
      Parameters:
      compressed - the compressed data
      buffer - the buffer to fill with the uncompressed data.