IterableResult<java.lang.String[],ParsingContext>
, java.lang.Iterable<java.lang.String[]>
public abstract class RowIterator
extends java.lang.Object
String[]
. Created when AbstractParser.iterate(File)
(and its overloaded counterparts) is calledModifier and Type | Field | Description |
---|---|---|
protected AbstractParser |
parser |
Constructor | Description |
---|---|
RowIterator(AbstractParser parser) |
Modifier and Type | Method | 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 java.lang.String[] |
nextResult() |
Returns the next record (either a String[] or a
Record ) |
protected final AbstractParser parser
public RowIterator(AbstractParser parser)
protected final java.lang.String[] nextResult()
Record
)public final ParsingContext getContext()
IterableResult
Context
, 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 java.lang.Iterable<T>
iterator
in interface IterableResult<T,ParsingContext>