I am using opencsv to parse csv file data which has been uploaded using web and populating the read data in the bean (using HeaderColumnNameTranslateMappingStrategy) which is working fine.
But struggling to find best way to validate (as a first check) that if the file has all the headers before starting processing the data.
Opencsv still process the file and populate null values in the bean when the file does not have all the headers that have been passed as a columnsMapping map.