Top Description Constructors Methods
com.univocity.parsers.common.processor

public Class RowListProcessor

extends AbstractListProcessor<ParsingContext>
implements RowProcessor
Class Inheritance
All Implemented Interfaces
com.univocity.parsers.common.processor.RowProcessor, com.univocity.parsers.common.processor.core.Processor
Imports
com.univocity.parsers.common.*, com.univocity.parsers.common.processor.core.*, java.util.*

A convenience 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 the RowListProcessor#rowProcessed(String[], ParsingContext) method for each parsed record.

String[] headers = rowProcessor.getHeaders();
List<String[]> rows = rowProcessor.getRows();


Author
Univocity Software Pty Ltd - [email protected]

Constructor Summary

AccessConstructor and Description
public
RowListProcessor()

Creates a new processor of String[] rows.

public
RowListProcessor(int
expected number of rows to be parsed from the input. Used to pre-allocate the size of the output List returned by getRows()
expectedRowCount
)

Creates a new processor of String[] rows.

Method Summary

Inherited from com.univocity.parsers.common.processor.core.AbstractListProcessor:
getHeadersgetRowsprocessEndedprocessStartedrowProcessed

Constructor Detail

RowListProcessorback to summary
public RowListProcessor()

Creates a new processor of String[] rows.

RowListProcessorback to summary
public RowListProcessor(int expectedRowCount)

Creates a new processor of String[] rows.

Parameters
expectedRowCount:int

expected number of rows to be parsed from the input. Used to pre-allocate the size of the output List returned by getRows()