-bottom

net.sf.csv4j
Interface CSVLineProcessor


public interface CSVLineProcessor

Interface for processing CSV lines for the optional header and the data lines.

Since:
1.0
Author:
Shawn Boyce

Method Summary
 boolean continueProcessing()
          Indicates if the line processing should continue.
 void processDataLine(int linenumber, List<String> fieldValues)
          Process a CSV data line.
 void processHeaderLine(int linenumber, List<String> fieldNames)
          Process the CSV header line.
 

Method Detail

processHeaderLine

void processHeaderLine(int linenumber,
                       List<String> fieldNames)
Process the CSV header line. Guaranteed to be called once before any calls to processDataLine.

Parameters:
linenumber - line number in the file
fieldNames - CSV field names (name Strings are never null)

processDataLine

void processDataLine(int linenumber,
                     List<String> fieldValues)
Process a CSV data line.

Parameters:
linenumber - line number in the file
fieldValues - CSV field values (value Strings are never null)

continueProcessing

boolean continueProcessing()
Indicates if the line processing should continue.

Returns:
true if continue to process lines; false if processing should stop.

-bottom