public class RowListProcessor extends AbstractListProcessor<ParsingContext> implements RowProcessor
RowProcessor implementation for storing all rows parsed into a list.
A typical use case of this class will be:
parserSettings.setRowProcessor(new RowListProcessor()); parser.parse(reader); // will invoke theRowProcessor.rowProcessed(String[], ParsingContext)method for each parsed record. String[] headers = rowProcessor.getHeaders(); List<String[]> rows = rowProcessor.getRows();
| Constructor and Description |
|---|
RowListProcessor()
Creates a new processor of
String[] rows. |
RowListProcessor(int expectedRowCount)
Creates a new processor of
String[] rows. |
getHeaders, getRows, processEnded, processStarted, rowProcessedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprocessEnded, processStarted, rowProcessedpublic RowListProcessor()
String[] rows.public RowListProcessor(int expectedRowCount)
String[] rows.expectedRowCount - expected number of rows to be parsed from the input.
Used to pre-allocate the size of the output List returned by AbstractListProcessor.getRows()Copyright © 2018 Univocity Software Pty Ltd. All rights reserved.