com.univocity.parsers.common.processor
Class RowListProcessor

java.lang.Object
  extended by com.univocity.parsers.common.processor.core.AbstractListProcessor<ParsingContext>
      extended by com.univocity.parsers.common.processor.RowListProcessor
All Implemented Interfaces:
Processor<ParsingContext>, RowProcessor

public class RowListProcessor
extends AbstractListProcessor<ParsingContext>
implements RowProcessor

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 RowProcessor.rowProcessed(String[], ParsingContext) method for each parsed record.

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

 

Author:
uniVocity Software Pty Ltd - parsers@univocity.com

Constructor Summary
RowListProcessor()
           
 
Method Summary
 
Methods inherited from class com.univocity.parsers.common.processor.core.AbstractListProcessor
getHeaders, getRows, processEnded, processStarted, rowProcessed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.univocity.parsers.common.processor.RowProcessor
processEnded, processStarted, rowProcessed
 

Constructor Detail

RowListProcessor

public RowListProcessor()


Copyright © 2017 uniVocity Software Pty Ltd. All rights reserved.