com.lowagie.text.pdf
Class LZWDecoder
java.lang.Object
com.lowagie.text.pdf.LZWDecoder
public class LZWDecoder
extends java.lang.Object
A class for performing LZW decoding.
void | addStringToTable(oldString[] , byte newString) - Add a new string to the string table.
|
void | addStringToTable(string[] ) - Add a new string to the string table.
|
byte[] | composeString(oldString[] , byte newString) - Append
newString to the end of oldString .
|
void | decode(data[] , OutputStream uncompData) - Method to decode LZW compressed data.
|
int | getNextCode()
|
void | initializeStringTable() - Initialize the string table.
|
void | writeString(string[] ) - Write out the string just uncompressed.
|
andTable
(package private) int[] andTable
bitPointer
(package private) int bitPointer
bitsToGet
(package private) int bitsToGet
bytePointer
(package private) int bytePointer
data
(package private) byte[] data
nextBits
(package private) int nextBits
nextData
(package private) int nextData
stringTable
(package private) byte[][] stringTable
tableIndex
(package private) int tableIndex
uncompData
(package private) OutputStream uncompData
LZWDecoder
public LZWDecoder()
addStringToTable
public void addStringToTable(oldString[] ,
byte newString)
Add a new string to the string table.
addStringToTable
public void addStringToTable(string[] )
Add a new string to the string table.
composeString
public byte[] composeString(oldString[] ,
byte newString)
Append newString
to the end of oldString
.
decode
public void decode(data[] ,
OutputStream uncompData)
Method to decode LZW compressed data.
uncompData
- Array to return the uncompressed data in.
getNextCode
public int getNextCode()
initializeStringTable
public void initializeStringTable()
Initialize the string table.
writeString
public void writeString(string[] )
Write out the string just uncompressed.