T - The type of the objects returnedpublic class DelimitRegExIterator<T> extends AbstractIterator<T>
| Modifier and Type | Class and Description |
|---|---|
static class |
DelimitRegExIterator.DelimitRegExIteratorFactory<T> |
| Constructor and Description |
|---|
DelimitRegExIterator(Reader r,
String delimiter,
Function<String,T> op) |
| Modifier and Type | Method and Description |
|---|---|
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 <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.
|
boolean |
hasNext() |
T |
next() |
protected T |
parseString(String s) |
Object |
peek() |
removeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic static DelimitRegExIterator<String> defaultDelimitRegExIterator(Reader in, String delimiter)
public boolean hasNext()
AbstractIteratorpublic T next()
AbstractIteratorpublic Object peek()
public static IteratorFromReaderFactory<String> getFactory(String delim)
public static <T> IteratorFromReaderFactory<T> getFactory(String delim, Function<String,T> op)