Iterator over the parser enabling easy iteration against rows and records
Multiple iterations are possible if Files are being fed into the parser,
but other forms of input (such as InputStreams and Readers) can not be iterated over more than once.
| Modifier and Type | Field and Description |
|---|---|
| protected final AbstractParser |
| Access | Constructor and Description |
|---|---|
| protected | ParserIterator(AbstractParser<T extends CommonParserSettings<?>>
the parser)parser to iterate overCreates a |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract void | |
| public final ParsingContext | getContext()
Implements com. Context, if available
|
| public final ResultIterator | iterator()
Implements com. T.
|
| protected abstract T | Returns: the next record if available.Returns the next record (either a String[] or a |
| parser | back to summary |
|---|---|
| protected final AbstractParser<T extends CommonParserSettings<?>> parser | |
| ParserIterator | back to summary |
|---|---|
| protected ParserIterator(AbstractParser<T extends CommonParserSettings<?>> parser) Creates a
| |
| beginParsing | back to summary |
|---|---|
| protected abstract void beginParsing() This method is called whenever the
This is to allow for different input types such as Reader, File, or InputStream without large code
reuse.
| |
| getContext | back to summary |
|---|---|
| public final ParsingContext getContext() Implements com. Doc from com. Returns the current parsing
| |
| iterator | back to summary |
|---|---|
| public final ResultIterator Implements com. Doc from java. Returns an iterator over elements of type
| |
| nextResult | back to summary |
|---|---|
| protected abstract T nextResult() Returns the next record (either a String[] or a
| |