Class RiceCompressor.IntRiceCompressor
java.lang.Object
nom.tam.fits.compression.algorithm.rice.RiceCompressor<IntBuffer>
nom.tam.fits.compression.algorithm.rice.RiceCompressor.IntRiceCompressor
- All Implemented Interfaces:
- ICompressor<IntBuffer>
- Enclosing class:
- RiceCompressor<T extends Buffer>
- 
Nested Class SummaryNested classes/interfaces inherited from class nom.tam.fits.compression.algorithm.rice.RiceCompressorRiceCompressor.ByteRiceCompressor, RiceCompressor.DoubleRiceCompressor, RiceCompressor.FloatRiceCompressor, RiceCompressor.IntRiceCompressor, RiceCompressor.ShortRiceCompressor
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleancompress(IntBuffer buffer, ByteBuffer writeBuffer) compress the buffer into the byte buffer.voiddecompress(ByteBuffer readBuffer, IntBuffer buffer) Decompress the byte buffer and restore the buffer from it, again enough space must already be allocated.protected intprotected voidnextPixel(int pixel) Methods inherited from class nom.tam.fits.compression.algorithm.rice.RiceCompressorcompress, decompressBuffer
- 
Constructor Details- 
IntRiceCompressor
 
- 
- 
Method Details- 
compressDescription copied from interface:ICompressorcompress the buffer into the byte buffer. Attention enough space must already be allocated.- Parameters:
- buffer- the buffer to compress.
- writeBuffer- the compressed data
- Returns:
- true if the compression succeeded.
 
- 
decompressDescription copied from interface:ICompressorDecompress the byte buffer and restore the buffer from it, again enough space must already be allocated.- Parameters:
- readBuffer- the compressed data
- buffer- the buffer to fill with the uncompressed data.
 
- 
nextPixelprotected int nextPixel()- Specified by:
- nextPixelin class- RiceCompressor<IntBuffer>
 
- 
nextPixelprotected void nextPixel(int pixel) - Specified by:
- nextPixelin class- RiceCompressor<IntBuffer>
 
 
-