| Constructor and Description |
|---|
LZ4Codec() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
compress(byte[] data,
CodecOptions options)
Compresses a block of data.
|
byte[] |
decompress(byte[] data)
Decompresses a block of data.
|
byte[] |
decompress(byte[] data,
CodecOptions options)
Decompresses a block of data.
|
byte[] |
decompress(byte[] data,
int inputOffset,
int length,
int outputLength)
Decompresses a block of data of specified length from an initial offset.
|
byte[] |
decompress(loci.common.RandomAccessInputStream in,
CodecOptions options)
Decompresses data from the given RandomAccessInputStream.
|
compress, compress, 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
Codecdecompress 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.IOExceptionpublic byte[] decompress(byte[] data)
throws CodecException
Codecdecompress in interface Codecdecompress in class BaseCodecdata - the data to be decompressed.CodecException - If data is not valid compressed data for this
decompressor.public byte[] decompress(byte[] data,
CodecOptions options)
throws CodecException
Codecdecompress in interface Codecdecompress in class BaseCodecdata - the data to be decompressedoptions - Options to be used during decompression.CodecException - If data is not valid.public byte[] decompress(byte[] data,
int inputOffset,
int length,
int outputLength)
throws CodecException
data - The data to be decompressed.inputOffset - The position of the input data at which to begin decompression.length - The length of input data to be decompressed.CodecException - If data is not valid.Copyright © 2005–2025 Open Microscopy Environment. All rights reserved.