|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectBuffer
This class implements operations on k-tuples needed for the computation of the entropy of a text.
| Field Summary | |
int |
head
The last character of word. |
java.lang.String |
word
|
| Constructor Summary | |
Buffer(java.io.Reader in,
int k)
Initializes a buffer composed of the k first characters
of a text. |
|
| Method Summary | |
void |
next(java.io.Reader in,
int k)
Shifts one character to the right the sliding window. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public java.lang.String word
public int head
word.
| Constructor Detail |
public Buffer(java.io.Reader in,
int k)
throws java.io.IOException
k first characters
of a text.
| Method Detail |
public void next(java.io.Reader in,
int k)
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||