public class LuraWaveCodec extends BaseCodec implements Codec
-Dlurawave.license=XXXX on the command line).
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
INVALID_LICENSE_MSG
Message to display if an invalid LuraWave license code is given.
|
static java.lang.String |
LICENSE_PROPERTY
System property to check for the LuraWave license code.
|
protected static java.lang.String |
licenseCode
License code for LuraWave decoding library.
|
static java.lang.String |
NO_LICENSE_MSG
Message to display if no LuraWave license code is given.
|
static java.lang.String |
NO_LURAWAVE_MSG
Message displayed if the LuraWave LWF decoder library is not found.
|
protected static boolean |
noLuraWave
True iff the LuraWave decoding library is not available.
|
protected static loci.formats.ReflectedUniverse |
r
Reflected universe for LuraWave decoding library calls.
|
| Constructor and Description |
|---|
LuraWaveCodec() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
compress(byte[] data,
int x,
int y,
int[] dims,
java.lang.Object options)
Compresses a block of data.
|
byte[] |
decompress(byte[] input,
java.lang.Object options)
Decompresses a block of data.
|
compress, decompress, decompress, decompress, testclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompress, decompress, decompress, decompresspublic static final java.lang.String LICENSE_PROPERTY
public static final java.lang.String NO_LURAWAVE_MSG
public static final java.lang.String NO_LICENSE_MSG
public static final java.lang.String INVALID_LICENSE_MSG
protected static boolean noLuraWave
protected static java.lang.String licenseCode
protected static loci.formats.ReflectedUniverse r
public byte[] compress(byte[] data,
int x,
int y,
int[] dims,
java.lang.Object options)
throws loci.formats.FormatException
Codeccompress 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[] input,
java.lang.Object options)
throws loci.formats.FormatException
Codecdecompress in interface Codecinput - the data to be decompressedoptions - Options to be used during decompression.loci.formats.FormatException - If data is not valid.