compressors
Class LZ77DictEntry

java.lang.Object
  extended by compressors.LZ77DictEntry

public class LZ77DictEntry
extends java.lang.Object

It represents an entry in a LZ77Dict dictionary


Field Summary
 int len
           
 int nOccur
           
 java.util.Vector<java.lang.Integer> pos
           
 java.lang.String word
           
 
Constructor Summary
LZ77DictEntry()
          Generates an empty entry
LZ77DictEntry(java.lang.String s, int pos1, int pos2)
          Generates a new entry for word s found in position pos1 and pos2
LZ77DictEntry(java.lang.String s, int nOccurIn, int lenIn, java.util.Vector<java.lang.Integer> posIn)
          Generates a new entry for word s, nOccur, len
 
Method Summary
 void addInstance(int posNew)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

word

public java.lang.String word

nOccur

public int nOccur

len

public int len

pos

public java.util.Vector<java.lang.Integer> pos
Constructor Detail

LZ77DictEntry

public LZ77DictEntry()
Generates an empty entry


LZ77DictEntry

public LZ77DictEntry(java.lang.String s,
                     int pos1,
                     int pos2)
Generates a new entry for word s found in position pos1 and pos2


LZ77DictEntry

public LZ77DictEntry(java.lang.String s,
                     int nOccurIn,
                     int lenIn,
                     java.util.Vector<java.lang.Integer> posIn)
Generates a new entry for word s, nOccur, len

Method Detail

addInstance

public void addInstance(int posNew)