anl.aida.util
Class IndexIterator

java.lang.Object
  extended by 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[].


Field Summary
protected  int index
           
private  StandardIndexLineParser lineParser
           
protected  java.util.List<java.lang.String> lines
           
 
Constructor Summary
IndexIterator(java.lang.String indexFile)
           
 
Method Summary
 boolean hasNext()
           
 java.lang.String nextLine()
           
 java.lang.String[] nextParsedLine(java.lang.String[] result)
           
 void rewind()
          Rewinds the iterator one index line.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

index

protected int index

lines

protected java.util.List<java.lang.String> lines

lineParser

private StandardIndexLineParser lineParser
Constructor Detail

IndexIterator

public IndexIterator(java.lang.String indexFile)
              throws java.io.IOException
Throws:
java.io.IOException
Method Detail

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.