public abstract class RowIterator extends Object
String[]. Created when AbstractParser.iterate(File)
(and its overloaded counterparts) is called| Modifier and Type | Field and Description |
|---|---|
protected AbstractParser |
parser |
| Constructor and Description |
|---|
RowIterator(AbstractParser parser) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
beginParsing()
This method is called whenever the
iterator is starting to iterate over the
results. |
ParsingContext |
getContext()
Returns the current parsing
Context, if available |
ResultIterator<T,ParsingContext> |
iterator() |
protected String[] |
nextResult()
Returns the next record (either a String[] or a
Record) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorprotected final AbstractParser parser
public RowIterator(AbstractParser parser)
protected final String[] nextResult()
Record)public final ParsingContext getContext()
IterableResultContext, if availablegetContext in interface IterableResult<T,ParsingContext>protected abstract void beginParsing()
iterator is starting to iterate over the
results.
an example implementation of this is:
@Override
public void beginParsing(){
parser.beginParsing(input);
}
Reader, File, or InputStream without large code
reuse.public final ResultIterator<T,ParsingContext> iterator()
iterator in interface IterableResult<T,ParsingContext>iterator in interface Iterable<T>Copyright © 2021 Univocity Software Pty Ltd. All rights reserved.