org.exoplatform.imageio.plugins.common
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 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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LZWStringTable
public LZWStringTable()
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)
Copyright © 2003–2014 eXo Platform SAS. All rights reserved.