edu.stanford.nlp.objectbank
Class DelimitRegExIterator.DelimitRegExIteratorFactory<T>
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DelimitRegExIterator.DelimitRegExIteratorFactory
public DelimitRegExIterator.DelimitRegExIteratorFactory(String delim,
Function<String,T> op)
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