org.exoplatform.imageio.plugins.common
Class LZWStringTable

java.lang.Object
  extended by 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.


Constructor Summary
LZWStringTable()
           
 
Method Summary
 int addCharString(short index, byte b)
           
 void clearTable(int codesize)
           
 void dump(PrintStream out)
           
 int expandCode(byte[] buf, int offset, short code, int skipHead)
           
 short findCharString(short index, byte b)
           
static int hash(short index, byte lastbyte)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LZWStringTable

public LZWStringTable()
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)


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.