Class LZWStringTable
java.lang.Object
org.exoplatform.imageio.plugins.common.LZWStringTable
version: openjdk-7-ea-src-b35-11_sep_2008
General purpose LZW String Table.
Extracted from GIFEncoder by Adam Doppelt
Comments added by Robin Luiten
expandCode added by Robin Luiten
The strLen table to give quick access to the lenght of an expanded
code for use by the expandCode method added by Robin.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintaddCharString(short index, byte b) voidclearTable(int codesize) voiddump(PrintStream out) intexpandCode(byte[] buf, int offset, short code, int skipHead) shortfindCharString(short index, byte b) static inthash(short index, byte lastbyte)
-
Constructor Details
-
LZWStringTable
public LZWStringTable()
-
-
Method Details
-
addCharString
public int addCharString(short index, byte b) -
findCharString
public short findCharString(short index, byte b) -
clearTable
public void clearTable(int codesize) -
hash
public static int hash(short index, byte lastbyte) -
expandCode
public int expandCode(byte[] buf, int offset, short code, int skipHead) -
dump
-