Class PLIOCompress.BytePLIOCompressor
- java.lang.Object
-
- nom.tam.fits.compression.algorithm.plio.PLIOCompress
-
- nom.tam.fits.compression.algorithm.plio.PLIOCompress.BytePLIOCompressor
-
- All Implemented Interfaces:
ICompressor<java.nio.ByteBuffer>
- Enclosing class:
- PLIOCompress
public static class PLIOCompress.BytePLIOCompressor extends PLIOCompress implements ICompressor<java.nio.ByteBuffer>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class nom.tam.fits.compression.algorithm.plio.PLIOCompress
PLIOCompress.BytePLIOCompressor, PLIOCompress.IntPLIOCompressor, PLIOCompress.ShortPLIOCompressor
-
-
Constructor Summary
Constructors Constructor Description BytePLIOCompressor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
compress(java.nio.ByteBuffer buffer, java.nio.ByteBuffer compressed)
compress the buffer into the byte buffer.void
decompress(java.nio.ByteBuffer compressed, java.nio.ByteBuffer buffer)
Decompress the byte buffer and restore the buffer from it, again enough space must already be allocated.protected int
nextPixel()
protected void
put(int index, int pixel)
-
Methods inherited from class nom.tam.fits.compression.algorithm.plio.PLIOCompress
compress, decompress
-
-
-
-
Method Detail
-
compress
public boolean compress(java.nio.ByteBuffer buffer, java.nio.ByteBuffer compressed)
Description copied from interface:ICompressor
compress the buffer into the byte buffer. Attention enough space must already be allocated.- Specified by:
compress
in interfaceICompressor<java.nio.ByteBuffer>
- Parameters:
buffer
- the buffer to compress.compressed
- the compressed data- Returns:
- true if the compression succeeded.
-
decompress
public void decompress(java.nio.ByteBuffer compressed, java.nio.ByteBuffer buffer)
Description copied from interface:ICompressor
Decompress the byte buffer and restore the buffer from it, again enough space must already be allocated.- Specified by:
decompress
in interfaceICompressor<java.nio.ByteBuffer>
- Parameters:
compressed
- the compressed databuffer
- the buffer to fill with the uncompressed data.
-
nextPixel
protected int nextPixel()
- Specified by:
nextPixel
in classPLIOCompress
-
put
protected void put(int index, int pixel)
- Specified by:
put
in classPLIOCompress
-
-