| java.lang.Object org.apache.xmlgraphics.image.codec.tiff.TIFFLZWDecoder
TIFFLZWDecoder | public class TIFFLZWDecoder (Code) | | A class for performing LZW decoding.
|
Constructor Summary | |
public | TIFFLZWDecoder(int w, int predictor, int samplesPerPixel) |
Method Summary | |
public void | addStringToTable(byte[] oldString, byte newString) Add a new string to the string table. | public void | addStringToTable(byte[] string) Add a new string to the string table. | public byte[] | composeString(byte[] oldString, byte newString) Append newString to the end of oldString . | public byte[] | decode(byte[] data, byte[] uncompData, int h) Method to decode LZW compressed data. | public int | getNextCode() | public void | initializeStringTable() Initialize the string table. | public void | writeString(byte[] string) Write out the string just uncompressed. |
bytePointerbitPointer | int bytePointerbitPointer(Code) | | |
predictorsamplesPerPixel | int predictorsamplesPerPixel(Code) | | |
stringTable | byte[][] stringTable(Code) | | |
tableIndexbitsToGet | int tableIndexbitsToGet(Code) | | |
uncompData | byte[] uncompData(Code) | | |
TIFFLZWDecoder | public TIFFLZWDecoder(int w, int predictor, int samplesPerPixel)(Code) | | |
addStringToTable | public void addStringToTable(byte[] oldString, byte newString)(Code) | | Add a new string to the string table.
|
addStringToTable | public void addStringToTable(byte[] string)(Code) | | Add a new string to the string table.
|
composeString | public byte[] composeString(byte[] oldString, byte newString)(Code) | | Append newString to the end of oldString .
|
decode | public byte[] decode(byte[] data, byte[] uncompData, int h)(Code) | | Method to decode LZW compressed data.
Parameters: data - The compressed data. Parameters: uncompData - Array to return the uncompressed data in. Parameters: h - The number of rows the compressed data contains. |
getNextCode | public int getNextCode()(Code) | | |
initializeStringTable | public void initializeStringTable()(Code) | | Initialize the string table.
|
writeString | public void writeString(byte[] string)(Code) | | Write out the string just uncompressed.
|
|
|