|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectloci.formats.Compression
A utility class for handling various compression types.
| Field Summary | |
protected static int |
CLEAR_CODE
|
protected static int |
CODE
|
protected static int |
DATA
|
protected static int |
EOI_CODE
|
protected static int |
RAW
|
protected static int |
RUN
|
protected static int |
SKIP_THREE
|
protected static int |
SKIP_TWO
|
protected static int |
THREE_BIT_DELTAS
|
protected static int |
TWO_BIT_DELTAS
|
| Constructor Summary | |
Compression()
|
|
| Method Summary | |
static byte[] |
deflateUncompress(byte[] input)
Decodes an Adobe Deflate (Zip) compressed image strip. |
static byte[] |
lzwCompress(byte[] input)
Encodes an image strip using the LZW compression method. |
static byte[] |
lzwUncompress(byte[] input)
Decodes an LZW-compressed image strip. |
static byte[] |
packBitsUncompress(byte[] input)
Decodes a PackBits (Macintosh RLE) compressed image. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final int CLEAR_CODE
protected static final int EOI_CODE
protected static final int DATA
protected static final int CODE
protected static final int RUN
protected static final int TWO_BIT_DELTAS
protected static final int SKIP_TWO
protected static final int THREE_BIT_DELTAS
protected static final int SKIP_THREE
protected static final int RAW
| Constructor Detail |
public Compression()
| Method Detail |
public static byte[] lzwCompress(byte[] input)
public static byte[] deflateUncompress(byte[] input)
throws FormatException
FormatExceptionpublic static byte[] packBitsUncompress(byte[] input)
public static byte[] lzwUncompress(byte[] input)
throws FormatException
FormatException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||