public class

LZWStringTable

extends Object
java.lang.Object
   ↳ com.sun.imageio.plugins.common.LZWStringTable

Class Overview

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.

Summary

Public Constructors
LZWStringTable()
Public Methods
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)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public LZWStringTable ()

Public Methods

public int addCharString (short index, byte b)

public void clearTable (int codesize)

public void dump (PrintStream out)

public int expandCode (byte[] buf, int offset, short code, int skipHead)

public short findCharString (short index, byte b)

public static int hash (short index, byte lastbyte)