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.
  • 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

      public void dump(PrintStream out)