Commons CSV is missing some elements to help dealing with CSV file headers.
With the current API one has to write the following code to read the fields by name:
The header should be defined in the format with something like this:
Then either the parser provides the column name to index mapping automatically:
or the parser returns a Map like structure similar to a JDBC ResultSet (replacing String):