|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.util.AbstractIterator<T>
edu.stanford.nlp.objectbank.DelimitRegExIterator<T>
T
- The type of the objects returnedpublic class DelimitRegExIterator<T>
An Iterator that reads the contents of a Reader, delimited by the specified delimiter, and then be subsequently processed by an Function to produce Objects of type T.
Nested Class Summary | |
---|---|
static class |
DelimitRegExIterator.DelimitRegExIteratorFactory<T>
|
Constructor Summary | |
---|---|
DelimitRegExIterator(Reader r,
String delimiter,
Function<String,T> op)
|
Method Summary | ||
---|---|---|
static DelimitRegExIterator<String> |
defaultDelimitRegExIterator(Reader in,
String delimiter)
|
|
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. |
|
static IteratorFromReaderFactory<String> |
getFactory(String delim,
boolean eolIsSignificant)
Returns a factory that vends DelimitRegExIterators that reads the contents of the given Reader, splits on the specified delimiter, then returns the result. |
|
static
|
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. |
|
static
|
getFactory(String delim,
Function<String,T> op,
boolean eolIsSignificant)
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. |
|
boolean |
hasNext()
|
|
static void |
main(String[] args)
|
|
T |
next()
|
|
protected T |
parseString(String s)
|
|
Object |
peek()
|
Methods inherited from class edu.stanford.nlp.util.AbstractIterator |
---|
remove |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DelimitRegExIterator(Reader r, String delimiter, Function<String,T> op)
Method Detail |
---|
public static DelimitRegExIterator<String> defaultDelimitRegExIterator(Reader in, String delimiter)
protected T parseString(String s)
public boolean hasNext()
hasNext
in interface Iterator<T>
hasNext
in class AbstractIterator<T>
public T next()
next
in interface Iterator<T>
next
in class AbstractIterator<T>
public Object peek()
public static IteratorFromReaderFactory<String> getFactory(String delim)
public static IteratorFromReaderFactory<String> getFactory(String delim, boolean eolIsSignificant)
public static <T> IteratorFromReaderFactory<T> getFactory(String delim, Function<String,T> op)
public static <T> IteratorFromReaderFactory<T> getFactory(String delim, Function<String,T> op, boolean eolIsSignificant)
public static void main(String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |