We are using OpenCSV to map CSV file to Java Bean. I want to make all String values to uppar case while mapping it to Java bean.
Suppose CSV contains following line
abc, 123, def, 123abc
while mapping it to bean it should be converted
ABC, 123, DEF, 123abc
I can go with reflection and have the desired result .But was looking for a solution through OpenCSV or Is there any feature in Apache Bean Utils or any other similar library which converts all String fields from a bean to uppercase?
Use an overridden
CsvToBean
implementation: