public class LZWDecoder extends Object
| Constructor and Description |
|---|
LZWDecoder() |
| Modifier and Type | Method and Description |
|---|---|
void |
addStringToTable(byte[] string)
Add a new string to the string table.
|
void |
addStringToTable(byte[] oldString,
byte newString)
Add a new string to the string table.
|
byte[] |
composeString(byte[] oldString,
byte newString)
Append
newString to the end of oldString. |
byte[] |
decode(byte[] data)
Method to decode LZW compressed data.
|
int |
getNextCode(byte[] data) |
void |
initializeStringTable()
Initialize the string table.
|
public int getNextCode(byte[] data)
public void addStringToTable(byte[] oldString,
byte newString)
oldString - newString - public void addStringToTable(byte[] string)
string - public byte[] composeString(byte[] oldString,
byte newString)
newString to the end of oldString.oldString - newString - public byte[] decode(byte[] data)
throws IOException
data - The compressed data.IOExceptionpublic void initializeStringTable()
Copyright © 2013 intarsys consulting GmbH. All Rights Reserved.