Class NoCompressCompressor.ShortNoCompressCompressor
java.lang.Object
nom.tam.fits.compression.algorithm.uncompressed.NoCompressCompressor<ShortBuffer>
nom.tam.fits.compression.algorithm.uncompressed.NoCompressCompressor.ShortNoCompressCompressor
- All Implemented Interfaces:
ICompressor<ShortBuffer>
- Enclosing class:
- NoCompressCompressor<T extends Buffer>
public static class NoCompressCompressor.ShortNoCompressCompressor
extends NoCompressCompressor<ShortBuffer>
-
Nested Class Summary
Nested classes/interfaces inherited from class nom.tam.fits.compression.algorithm.uncompressed.NoCompressCompressor
NoCompressCompressor.ByteNoCompressCompressor, NoCompressCompressor.DoubleNoCompressCompressor, NoCompressCompressor.FloatNoCompressCompressor, NoCompressCompressor.IntNoCompressCompressor, NoCompressCompressor.LongNoCompressCompressor, NoCompressCompressor.ShortNoCompressCompressor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancompress(ShortBuffer pixelData, ByteBuffer compressed) compress the buffer into the byte buffer.voiddecompress(ByteBuffer compressed, ShortBuffer pixelData) Decompress the byte buffer and restore the buffer from it, again enough space must already be allocated.
-
Constructor Details
-
ShortNoCompressCompressor
public ShortNoCompressCompressor()
-
-
Method Details
-
compress
Description copied from interface:ICompressorcompress 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
Description copied from interface:ICompressorDecompress the byte buffer and restore the buffer from it, again enough space must already be allocated.- Parameters:
compressed- the compressed datapixelData- the buffer to fill with the uncompressed data.
-