class WrappedCodec extends BaseCodec
Modifier and Type | Field and Description |
---|---|
protected ome.codecs.Codec |
codec |
Modifier | Constructor and Description |
---|---|
protected |
WrappedCodec(ome.codecs.Codec codec)
Construct with a codec implementation to wrap.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
compress(byte[][] data,
CodecOptions options)
2D data block encoding default implementation.
|
byte[] |
compress(byte[] data,
CodecOptions options)
Compresses a block of data.
|
private static void |
copyOptions(CodecOptions src,
ome.codecs.CodecOptions dest) |
byte[] |
decompress(byte[] data)
Decompresses a block of data.
|
byte[] |
decompress(byte[][] data)
Decompresses a block of data.
|
byte[] |
decompress(byte[][] data,
CodecOptions options)
2D data block decoding default implementation.
|
byte[] |
decompress(byte[] data,
CodecOptions options)
Decompresses a block of data.
|
byte[] |
decompress(loci.common.RandomAccessInputStream in,
CodecOptions options)
Decompresses data from the given RandomAccessInputStream.
|
protected static ome.codecs.CodecOptions |
getOptions(CodecOptions options) |
(package private) static FormatException |
unwrapCodecException(ome.codecs.CodecException e) |
protected WrappedCodec(ome.codecs.Codec codec)
codec
- the codec to wrap.public byte[] compress(byte[] data, CodecOptions options) throws FormatException
Codec
data
- 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[] compress(byte[][] data, CodecOptions options) throws FormatException
BaseCodec
compress
in interface Codec
compress
in class BaseCodec
data
- 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(byte[] data, CodecOptions options) throws FormatException
Codec
decompress
in interface Codec
decompress
in class BaseCodec
data
- the data to be decompressedoptions
- Options to be used during decompression.FormatException
- If data is not valid.public byte[] decompress(byte[][] data, CodecOptions options) throws FormatException
BaseCodec
decompress
in interface Codec
decompress
in class BaseCodec
data
- The data to be decompressed.options
- Options to be used during decompression.FormatException
- If input is not a compressed data block of the
appropriate type.public byte[] decompress(byte[] data) throws FormatException
Codec
decompress
in interface Codec
decompress
in class BaseCodec
data
- the data to be decompressed.FormatException
- If data is not valid compressed data for this
decompressor.public byte[] decompress(byte[][] data) throws FormatException
Codec
decompress
in interface Codec
decompress
in class BaseCodec
data
- The data to be decompressed.FormatException
- If data is not valid compressed data for this
decompressor.public byte[] decompress(loci.common.RandomAccessInputStream in, CodecOptions options) throws FormatException, java.io.IOException
Codec
decompress
in interface Codec
decompress
in class BaseCodec
in
- 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.java.io.IOException
private static void copyOptions(CodecOptions src, ome.codecs.CodecOptions dest) throws FormatException
FormatException
protected static ome.codecs.CodecOptions getOptions(CodecOptions options) throws FormatException
FormatException
static FormatException unwrapCodecException(ome.codecs.CodecException e)
Copyright © 2017 Open Microscopy Environment