anl.aida.util
Class IndexIterator
java.lang.Object
anl.aida.util.IndexIterator
public class IndexIterator
- extends java.lang.Object
Iterates over the lines in standard index, returning the parsed results
in a String[].
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
index
protected int index
lines
protected java.util.List<java.lang.String> lines
lineParser
private StandardIndexLineParser lineParser
IndexIterator
public IndexIterator(java.lang.String indexFile)
throws java.io.IOException
- Throws:
java.io.IOException
nextLine
public java.lang.String nextLine()
nextParsedLine
public java.lang.String[] nextParsedLine(java.lang.String[] result)
hasNext
public boolean hasNext()
rewind
public void rewind()
- Rewinds the iterator one index line.