| Constructor and Description |
|---|
HuffmanCodec() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
compress(byte[] data,
CodecOptions options)
Compresses a block of data.
|
byte[] |
decompress(loci.common.RandomAccessInputStream in,
CodecOptions options)
The CodecOptions parameter must be an instance of
HuffmanCodecOptions, and should have the following fields set:
table
bitsPerSample
maxBytes |
int |
getSample(BitBuffer bb,
CodecOptions options)
Deprecated.
|
int |
getSample(loci.common.RandomAccessInputStream bb,
CodecOptions options) |
compress, compress, decompress, decompress, decompress, decompress, testpublic byte[] compress(byte[] data,
CodecOptions options)
throws CodecException
Codecdata - The data to be compressed.options - Options to be used during compression, if appropriate.CodecException - If input is not a compressed data block of the
appropriate type.public byte[] decompress(loci.common.RandomAccessInputStream in,
CodecOptions options)
throws CodecException,
IOException
HuffmanCodecOptions, and should have the following fields set:
table
bitsPerSample
maxBytesdecompress in interface Codecdecompress in class BaseCodecin - The stream from which to read compressed data.options - Options to be used during decompression.CodecException - If data is not valid compressed data for this
decompressor.IOExceptionCodec.decompress(RandomAccessInputStream, CodecOptions)@Deprecated public int getSample(BitBuffer bb, CodecOptions options) throws CodecException
CodecExceptionpublic int getSample(loci.common.RandomAccessInputStream bb,
CodecOptions options)
throws CodecException
CodecExceptionCopyright © 2005–2025 Open Microscopy Environment. All rights reserved.