|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.util.AbstractIterator
edu.stanford.nlp.objectbank.DelimitRegExIterator
public class DelimitRegExIterator
An Iterator that reads the contents of a buffer, delimited by the specified delimiter, and then be subsequently processed by an Function to produce Objects.
Nested Class Summary | |
---|---|
static class |
DelimitRegExIterator.DelimitRegExIteratorFactory
|
Constructor Summary | |
---|---|
DelimitRegExIterator(Reader in,
String delimiter)
|
|
DelimitRegExIterator(Reader r,
String delimiter,
Function op)
|
Method Summary | |
---|---|
static IteratorFromReaderFactory |
getFactory(String delim)
Returns a factory that vends DelimitRegExIterators that reads the contents of the given Reader, splits on the specified delimiter, then returns the result. |
static IteratorFromReaderFactory |
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 IteratorFromReaderFactory |
getFactory(String delim,
Function 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 IteratorFromReaderFactory |
getFactory(String delim,
Function 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)
|
Object |
next()
|
protected Object |
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 in, String delimiter)
public DelimitRegExIterator(Reader r, String delimiter, Function op)
Method Detail |
---|
protected Object parseString(String s)
public boolean hasNext()
hasNext
in interface Iterator
hasNext
in class AbstractIterator
public Object next()
next
in interface Iterator
next
in class AbstractIterator
public Object peek()
public static IteratorFromReaderFactory getFactory(String delim)
public static IteratorFromReaderFactory getFactory(String delim, boolean eolIsSignificant)
public static IteratorFromReaderFactory getFactory(String delim, Function op)
public static IteratorFromReaderFactory getFactory(String delim, Function 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 |