Package com.opencsv.processor
Interface RowProcessor
public interface RowProcessor
This is the interface for processors for an array of
String
s read by
the CSVReader
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
-
Method Summary
Modifier and TypeMethodDescriptionprocessColumnItem
(String column) Method that contains the code that will transform a single column/element.void
processRow
(String[] row) Method that will process the entire row.
-
Method Details
-
processColumnItem
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. -
processRow
Method that will process the entire row.- Parameters:
row
- Array ofString
s to be processed
-