loci.formats.codec
Class AdobeDeflateCodec
java.lang.Object
loci.formats.codec.BaseCodec
loci.formats.codec.AdobeDeflateCodec
- All Implemented Interfaces:
- Codec
public class AdobeDeflateCodec
- extends BaseCodec
- implements Codec
This class implements Adobe Deflate decompression. Compression is not yet
implemented.
- Source code:
- Trac,
SVN
- Author:
- Melissa Linkert linkert at wisc.edu
Method Summary |
byte[] |
compress(byte[] data,
int x,
int y,
int[] dims,
Object options)
Compresses a block of Adobe Deflate data. |
byte[] |
decompress(byte[] input,
Object options)
Decodes an Adobe Deflate (Zip) compressed image strip. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AdobeDeflateCodec
public AdobeDeflateCodec()
compress
public byte[] compress(byte[] data,
int x,
int y,
int[] dims,
Object options)
throws loci.formats.FormatException
- Compresses a block of Adobe Deflate data. Currently not supported.
- Specified by:
compress
in interface Codec
- Parameters:
data
- the data to be compressedx
- length of the x dimension of the image data, if appropriatey
- length of the y dimension of the image data, if appropriatedims
- the dimensions of the image data, if appropriateoptions
- options to be used during compression, if appropriate
- Returns:
- The compressed data
- Throws:
loci.formats.FormatException
- If input is not an Adobe data block.
decompress
public byte[] decompress(byte[] input,
Object options)
throws loci.formats.FormatException
- Decodes an Adobe Deflate (Zip) compressed image strip.
- Specified by:
decompress
in interface Codec
- Parameters:
input
- the data to be decompressedoptions
- Options to be used during decompression.
- Returns:
- The decompressed data
- Throws:
loci.formats.FormatException
- if data is not valid compressed data for this
decompressor