edu.stanford.nlp.objectbank
Class DelimitRegExIterator.DelimitRegExIteratorFactory<T>

java.lang.Object
  extended by edu.stanford.nlp.objectbank.DelimitRegExIterator.DelimitRegExIteratorFactory<T>
All Implemented Interfaces:
IteratorFromReaderFactory<T>, Serializable
Enclosing class:
DelimitRegExIterator<T>

public static class DelimitRegExIterator.DelimitRegExIteratorFactory<T>
extends Object
implements IteratorFromReaderFactory<T>, Serializable

See Also:
Serialized Form

Constructor Summary
DelimitRegExIterator.DelimitRegExIteratorFactory(String delim, Function<String,T> op)
           
 
Method Summary
static DelimitRegExIterator.DelimitRegExIteratorFactory<String> defaultDelimitRegExIteratorFactory(String delim)
           
 Iterator<T> getIterator(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

DelimitRegExIterator.DelimitRegExIteratorFactory

public DelimitRegExIterator.DelimitRegExIteratorFactory(String delim,
                                                        Function<String,T> op)
Method Detail

defaultDelimitRegExIteratorFactory

public static DelimitRegExIterator.DelimitRegExIteratorFactory<String> defaultDelimitRegExIteratorFactory(String delim)

getIterator

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

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


Stanford NLP Group