public class ObjectRowListProcessor extends com.univocity.parsers.common.processor.core.AbstractObjectListProcessor<HtmlParsingContext> implements RowProcessor
A convenience RowProcessor implementation for storing all rows parsed and converted to Object arrays into a list. A typical use case of this class will be:
ObjectRowListProcessor processor = new ObjectRowListProcessor();
processor.convertIndexes(Conversions.toBigDecimal()).set(4, 6);
parserSettings.setRowProcessor(new ObjectRowListProcessor());
parser.parse(reader); // will invoke the {@link ObjectRowListProcessor#rowProcessed(Object[], Context)} method for each parsed record.</p>
<p>String[] headers = rowProcessor.getHeaders(); List<Object[]> rows = rowProcessor.getRows(); BigDecimal value1 = (BigDecimal) row.get(4); BigDecimal value2 = (BigDecimal) row.get(6); RowProcessor,
ObjectRowProcessor,
AbstractParser| Constructor and Description |
|---|
ObjectRowListProcessor() |
getHeaders, getRows, processEnded, processStarted, rowProcessedrowProcessedapplyConversions, convertAll, convertFields, convertIndexes, convertType, handleConversionError, initializeConversions, reverseConversions, toDataProcessingExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprocessEnded, processStarted, rowProcessedCopyright © 2018 uniVocity Software Pty Ltd. All rights reserved.