public class DirectAccessWordnetFile.DirectLineIterator extends WordnetFile.LineIterator
WordnetFile.LineIterator.remove() method; if that method is called, it
will throw an UnsupportedOperationException.itrBuffer, next, parentBuffer| Constructor and Description |
|---|
DirectLineIterator(ByteBuffer buffer,
String key)
Constructs a new line iterator over this buffer, starting at the
specified key.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
findFirstLine(String key)
Advances the iterator the first line the iterator should return,
based on the specified key.
|
advance, getNextLine, hasNext, isComment, next, removeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic DirectLineIterator(ByteBuffer buffer, 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 nullNullPointerException - if the specified buffer is nullprotected void findFirstLine(String key)
WordnetFile.LineIteratorfindFirstLine in class WordnetFile.LineIteratorkey - the key indexed the first line to be returned by the
iteratorCopyright © 2018. All rights reserved.