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>
-
Nested Class Summary
Nested classes/interfaces inherited from class HCompressor
HCompressor.ByteHCompressor, HCompressor.DoubleHCompressor, HCompressor.FloatHCompressor, HCompressor.IntHCompressor, HCompressor.ShortHCompressor -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancompress(ByteBuffer buffer, ByteBuffer compressed) compress the buffer into the byte buffer.voiddecompress(ByteBuffer compressed, ByteBuffer buffer) Decompress the byte buffer and restore the buffer from it, again enough space must already be allocated.Methods inherited from class HCompressor
compress, decompress
-
Field Details
-
BYTE_MASK_FOR_LONG
private static final long BYTE_MASK_FOR_LONG- See Also:
-
-
Constructor Details
-
ByteHCompressor
-
-
Method Details
-
compress
Description copied from interface:ICompressorcompress 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
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 databuffer- the buffer to fill with the uncompressed data.
-