Class FileBackedDictionary.FileLookaheadIterator
java.lang.Object
net.didion.jwnl.dictionary.FileBackedDictionary.FileLookaheadIterator
- All Implemented Interfaces:
Iterator
- Direct Known Subclasses:
FileBackedDictionary.IndexFileLookaheadIterator
- Enclosing class:
FileBackedDictionary
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate longprotected DictionaryFileTypeprivate booleanprivate longprotected POS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected longgetNextOffset(long currentOffset) final booleanhasNext()final Objectnext()protected final voidnextLine()Read the next line in the iterated file.protected final voidprotected abstract Objectvoidremove()This method can be over-ridden to remove the currently pointed-at object from the data source backing the iterator.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemaining
-
Field Details
-
_currentLine
-
_currentOffset
private long _currentOffset -
_nextOffset
private long _nextOffset -
_more
private boolean _more -
_pos
-
_fileType
-
-
Constructor Details
-
FileLookaheadIterator
-
-
Method Details
-
parseLine
-
next
-
hasNext
-
remove
-
nextLine
protected final void nextLine()Read the next line in the iterated file. -
nextOffset
- Throws:
JWNLException
-
getNextOffset
- Throws:
JWNLException
-