Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

external
Class LZWStringTable  view LZWStringTable download LZWStringTable.java

java.lang.Object
  extended byexternal.LZWStringTable

class LZWStringTable
extends java.lang.Object


Field Summary
private static short HASH_FREE
           
private static short HASHSIZE
           
private static short HASHSTEP
           
private static int MAXBITS
           
private static int MAXSTR
           
private static short NEXT_FIRST
           
(package private)  short numStrings_
           
private static int RES_CODES
           
(package private)  byte[] strChr_
           
(package private)  short[] strHsh_
           
(package private)  short[] strNxt_
           
 
Constructor Summary
LZWStringTable()
           
 
Method Summary
 int AddCharString(short index, byte b)
           
 void ClearTable(int codesize)
           
 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
 

Field Detail

RES_CODES

private static final int RES_CODES
See Also:
Constant Field Values

HASH_FREE

private static final short HASH_FREE
See Also:
Constant Field Values

NEXT_FIRST

private static final short NEXT_FIRST
See Also:
Constant Field Values

MAXBITS

private static final int MAXBITS
See Also:
Constant Field Values

MAXSTR

private static final int MAXSTR
See Also:
Constant Field Values

HASHSIZE

private static final short HASHSIZE
See Also:
Constant Field Values

HASHSTEP

private static final short HASHSTEP
See Also:
Constant Field Values

strChr_

byte[] strChr_

strNxt_

short[] strNxt_

strHsh_

short[] strHsh_

numStrings_

short numStrings_
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)