Jenny Finkel
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DelimitRegExIterator
public DelimitRegExIterator(Reader r,
String delimiter,
Function<String,T> op)
defaultDelimitRegExIterator
public static DelimitRegExIterator<String> defaultDelimitRegExIterator(Reader in,
String delimiter)
parseString
protected T parseString(String s)
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator<T>
- Specified by:
hasNext
in class AbstractIterator<T>
next
public T next()
- Specified by:
next
in interface Iterator<T>
- Specified by:
next
in class AbstractIterator<T>
peek
public Object peek()
getFactory
public static IteratorFromReaderFactory<String> getFactory(String delim)
- Returns a factory that vends DelimitRegExIterators that read the contents of the
given Reader, splits on the specified delimiter, then returns the result.
getFactory
public static <T> IteratorFromReaderFactory<T> getFactory(String delim,
Function<String,T> op)
- Returns a factory that vends DelimitRegExIterators that reads the contents of the
given Reader, splits on the specified delimiter, applies op, then returns the result.
main
public static void main(String[] args)
Stanford NLP Group