Class LZWStringTable
- java.lang.Object
-
- org.exoplatform.imageio.plugins.common.LZWStringTable
-
public class LZWStringTable extends Object
version: openjdk-7-ea-src-b35-11_sep_2008 General purpose LZW String Table. Extracted from GIFEncoder by Adam Doppelt Comments added by Robin LuitenexpandCodeadded by Robin Luiten The strLen table to give quick access to the lenght of an expanded code for use by theexpandCodemethod added by Robin.
-
-
Constructor Summary
Constructors Constructor Description LZWStringTable()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intaddCharString(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)
-
-
-
Method Detail
-
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
public void dump(PrintStream out)
-
-