edu.washington.cs.knowitall.io
Class BufferedReaderIterator

java.lang.Object
  extended by com.google.common.collect.UnmodifiableIterator<T>
      extended by com.google.common.collect.AbstractIterator<java.lang.String>
          extended by edu.washington.cs.knowitall.io.BufferedReaderIterator
All Implemented Interfaces:
java.util.Iterator<java.lang.String>

public class BufferedReaderIterator
extends com.google.common.collect.AbstractIterator<java.lang.String>

A wrapper class that converts a BufferedReader object into a Iterator object, which iterates over the lines returned by the BufferedReader.

Author:
afader

Constructor Summary
BufferedReaderIterator(java.io.Reader reader)
          Constructs a new iterator over the lines in reader.
 
Method Summary
protected  java.lang.String computeNext()
           
 
Methods inherited from class com.google.common.collect.AbstractIterator
endOfData, hasNext, next, peek
 
Methods inherited from class com.google.common.collect.UnmodifiableIterator
remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BufferedReaderIterator

public BufferedReaderIterator(java.io.Reader reader)
Constructs a new iterator over the lines in reader.

Parameters:
reader -
Method Detail

computeNext

protected java.lang.String computeNext()
Specified by:
computeNext in class com.google.common.collect.AbstractIterator<java.lang.String>