org.cdlib.xtf.textEngine
Class BoostSet.LineIter

Object
  extended by BoostSet.LineIter
Enclosing class:
BoostSet

private class BoostSet.LineIter
extends Object

Iterates all the lines in a boost file


Field Summary
(package private)  boolean done
           
(package private)  float lineBoost
           
(package private)  String lineKey
           
(package private)  String prevLineKey
           
(package private)  BufferedReader reader
           
 
Constructor Summary
BoostSet.LineIter(BufferedReader reader)
          Construct from a reader
 
Method Summary
(package private)  float boost()
          Get the boost factor of the current line
(package private)  void close()
          Clean up
(package private)  boolean done()
          Returns true if no more lines to read
(package private)  String key()
          Get the document key of the current line
(package private)  void next()
          Advance to the next line
private  void readLine()
          Read the next line in the file
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reader

BufferedReader reader

done

boolean done

prevLineKey

String prevLineKey

lineKey

String lineKey

lineBoost

float lineBoost
Constructor Detail

BoostSet.LineIter

BoostSet.LineIter(BufferedReader reader)
            throws IOException
Construct from a reader

Throws:
IOException
Method Detail

done

boolean done()
Returns true if no more lines to read


key

String key()
Get the document key of the current line


boost

float boost()
Get the boost factor of the current line


next

void next()
    throws IOException
Advance to the next line

Throws:
IOException

close

void close()
     throws IOException
Clean up

Throws:
IOException

readLine

private void readLine()
               throws IOException
Read the next line in the file

Throws:
IOException