edu.mit.jwi.data
Class BinarySearchWordnetFile.BinarySearchLineIterator
java.lang.Object
edu.mit.jwi.data.WordnetFile.LineIterator
edu.mit.jwi.data.BinarySearchWordnetFile.BinarySearchLineIterator
- All Implemented Interfaces:
- Iterator<String>
- Enclosing class:
- BinarySearchWordnetFile<T>
public class BinarySearchWordnetFile.BinarySearchLineIterator
- extends WordnetFile.LineIterator
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.
- Since:
- JWI 2.0.0
- Version:
- 2.2.2
- Author:
- Mark A. Finlayson
|
Method Summary |
protected void |
findFirstLine(String key)
Advances the iterator the first line the iterator should return,
based on the specified key. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BinarySearchWordnetFile.BinarySearchLineIterator
public BinarySearchWordnetFile.BinarySearchLineIterator(ByteBuffer buffer,
String key)
- Constructs a new line iterator over this buffer, starting at the
specified key.
- Parameters:
buffer - the buffer over which the iterator should iterator; may
not be nullkey - the key of the line to start at; may be null
- Throws:
NullPointerException - if the specified buffer is null- Since:
- JWI 2.0.0
findFirstLine
protected void findFirstLine(String key)
- Description copied from class:
WordnetFile.LineIterator
- Advances the iterator the first line the iterator should return,
based on the specified key. If the key is not found in the file, it
will advance the iterator past all lines.
- Specified by:
findFirstLine in class WordnetFile.LineIterator
- Parameters:
key - the key indexed the first line to be returned by the
iterator
Copyright © 2011. All Rights Reserved.