public abstract class BaseCodec extends Object implements Codec
| Constructor and Description |
|---|
BaseCodec() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
compress(byte[][] data,
int x,
int y,
int[] dims,
Object options)
2D data block encoding default implementation.
|
byte[] |
decompress(byte[] data)
Decompresses a block of data.
|
byte[] |
decompress(byte[][] data)
Decompresses a block of data.
|
byte[] |
decompress(byte[][] data,
Object options)
2D data block decoding default implementation.
|
void |
test()
Main testing method default implementation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompress, decompresspublic void test()
throws loci.formats.FormatException
loci.formats.FormatException - Can only occur if there is a bug in the
compress method.public byte[] compress(byte[][] data,
int x,
int y,
int[] dims,
Object options)
throws loci.formats.FormatException
compress in interface Codecdata - The data to be compressed.x - Length of the x dimension of the image data, if appropriate.y - Length of the y dimension of the image data, if appropriate.dims - The dimensions of the image data, if appropriate.options - Options to be used during compression, if appropriate.loci.formats.FormatException - If input is not a compressed data block of the
appropriate type.public byte[] decompress(byte[] data)
throws loci.formats.FormatException
Codecdecompress in interface Codecdata - the data to be decompressed.loci.formats.FormatException - If data is not valid compressed data for this
decompressor.public byte[] decompress(byte[][] data)
throws loci.formats.FormatException
Codecdecompress in interface Codecdata - The data to be decompressed.loci.formats.FormatException - If data is not valid compressed data for this
decompressor.public byte[] decompress(byte[][] data,
Object options)
throws loci.formats.FormatException
decompress in interface Codecdata - The data to be decompressed.options - Options to be used during decompression.loci.formats.FormatException - If input is not a compressed data block of the
appropriate type.