edu.stanford.nlp.objectbank
Class LineIterator.LineIteratorFactory<X>

java.lang.Object
  extended by edu.stanford.nlp.objectbank.LineIterator.LineIteratorFactory<X>
All Implemented Interfaces:
IteratorFromReaderFactory<X>, java.io.Serializable
Enclosing class:
LineIterator<X>

public static class LineIterator.LineIteratorFactory<X>
extends java.lang.Object
implements IteratorFromReaderFactory<X>, java.io.Serializable

See Also:
Serialized Form

Constructor Summary
LineIterator.LineIteratorFactory()
           
LineIterator.LineIteratorFactory(Function<java.lang.String,X> op)
           
 
Method Summary
 java.util.Iterator<X> getIterator(java.io.Reader r)
          Return an iterator over the contents read from r.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineIterator.LineIteratorFactory

public LineIterator.LineIteratorFactory()

LineIterator.LineIteratorFactory

public LineIterator.LineIteratorFactory(Function<java.lang.String,X> op)
Method Detail

getIterator

public java.util.Iterator<X> getIterator(java.io.Reader r)
Description copied from interface: IteratorFromReaderFactory
Return an iterator over the contents read from r.

Specified by:
getIterator in interface IteratorFromReaderFactory<X>
Parameters:
r - Where to read objects from
Returns:
An Iterator over the objects


Stanford NLP Group