Class NoCompressCompressor.ByteNoCompressCompressor

java.lang.Object
nom.tam.fits.compression.algorithm.uncompressed.NoCompressCompressor<ByteBuffer>
nom.tam.fits.compression.algorithm.uncompressed.NoCompressCompressor.ByteNoCompressCompressor
All Implemented Interfaces:
ICompressor<ByteBuffer>
Enclosing class:
NoCompressCompressor<T extends Buffer>

public static class NoCompressCompressor.ByteNoCompressCompressor extends NoCompressCompressor<ByteBuffer>
  • Constructor Details

    • ByteNoCompressCompressor

      public ByteNoCompressCompressor()
  • Method Details

    • compress

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

      public void decompress(ByteBuffer compressed, ByteBuffer pixelData)
      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
      pixelData - the buffer to fill with the uncompressed data.