Package com.opencsv.processor
Interface RowProcessor
-
public interface RowProcessor
This is the interface for processors for an array ofString
s read by theCSVReader
before> they are validated.This should only be used if you have a very good understanding and full control of the data being processed or something you want applied to every column in the row.
WARNING - using a processor can change the string in ways that could make it impossible to be processed or make it into a different format than what you are expecting based on the settings of the parser and reader. So great care must be taken when creating and using a RowProcessor.
NOTE - Because of the potential problems a bad processor can cause we will close down any bug reports created for opencsv where a RowProcessor is involved with the recommendation they be reopened as a support request.
- Since:
- 5.0
- Author:
- Scott Conway
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
processColumnItem(java.lang.String column)
Method that contains the code that will transform a single column/element.void
processRow(java.lang.String[] row)
Method that will process the entire row.
-
-
-
Method Detail
-
processColumnItem
java.lang.String processColumnItem(java.lang.String column)
Method that contains the code that will transform a single column/element. While not called directly by opencsv it is in the interface to provide an easy way to test if the processor is functioning properly.- Parameters:
column
-String
to be processed- Returns:
- The processed
String
-
processRow
void processRow(java.lang.String[] row)
Method that will process the entire row.- Parameters:
row
- Array ofString
s to be processed
-
-