|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.mit.jwi.data.WordnetFile.LineIterator
edu.mit.jwi.data.BinarySearchWordnetFile.BinarySearchLineIterator
public class BinarySearchWordnetFile.BinarySearchLineIterator
Used to iterate over lines in a file. It is a look-ahead iterator. Does
not support the WordnetFile.LineIterator.remove() method; if that method is called, it
will throw an UnsupportedOperationException.
| Field Summary |
|---|
| Fields inherited from class edu.mit.jwi.data.WordnetFile.LineIterator |
|---|
itrBuffer, next, parentBuffer |
| Constructor Summary | |
|---|---|
BinarySearchWordnetFile.BinarySearchLineIterator(java.nio.ByteBuffer buffer,
java.lang.String key)
Constructs a new line iterator over this buffer, starting at the specified key. |
|
| Method Summary | |
|---|---|
protected void |
findFirstLine(java.lang.String key)
Advances the iterator the first line the iterator should return, based on the specified key. |
| Methods inherited from class edu.mit.jwi.data.WordnetFile.LineIterator |
|---|
advance, getNextLine, hasNext, isComment, next, remove |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BinarySearchWordnetFile.BinarySearchLineIterator(java.nio.ByteBuffer buffer,
java.lang.String key)
buffer - the buffer over which the iterator should iterator; may
not be nullkey - the key of the line to start at; may be null
java.lang.NullPointerException - if the specified buffer is null| Method Detail |
|---|
protected void findFirstLine(java.lang.String key)
WordnetFile.LineIterator
findFirstLine in class WordnetFile.LineIteratorkey - the key indexed the first line to be returned by the
iterator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||