public class LuraWaveCodec extends BaseCodec
-Dlurawave.license=XXXX on the command line).| Modifier and Type | Field and Description |
|---|---|
private LuraWaveService |
service |
| Constructor and Description |
|---|
LuraWaveCodec() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
compress(byte[] data,
CodecOptions options)
Compresses a block of data.
|
byte[] |
decompress(byte[] buf,
CodecOptions options)
The CodecOptions parameter should have the following fields set:
maxBytes |
byte[] |
decompress(RandomAccessInputStream in,
CodecOptions options)
Decompresses data from the given RandomAccessInputStream.
|
private void |
initialize()
Initializes the LuraWave dependency service.
|
compress, decompress, decompress, decompress, testprivate LuraWaveService service
public byte[] compress(byte[] data,
CodecOptions options)
throws FormatException
Codecdata - The data to be compressed.options - Options to be used during compression, if appropriate.FormatException - If input is not a compressed data block of the
appropriate type.public byte[] decompress(RandomAccessInputStream in, CodecOptions options) throws FormatException, IOException
Codecdecompress in interface Codecdecompress in class BaseCodecin - The stream from which to read compressed data.options - Options to be used during decompression.FormatException - If data is not valid compressed data for this
decompressor.IOExceptionpublic byte[] decompress(byte[] buf,
CodecOptions options)
throws FormatException
maxBytesdecompress in interface Codecdecompress in class BaseCodecbuf - the data to be decompressedoptions - Options to be used during decompression.FormatException - If data is not valid.Codec.decompress(byte[], CodecOptions)private void initialize()
throws FormatException
decompress(loci.common.RandomAccessInputStream, loci.formats.codec.CodecOptions) method to avoid having the
constructor's method definition contain a checked exception.FormatException - If there is an error initializing LuraWave
services.Copyright © 2015 Open Microscopy Environment