I have a system where users can import data through csv files. The file is parsed to POJOs using SuperCSV.
I want to be able to manage these files with or without the header row.
CsvBeanReader.getHeader(true)
will extract the first row, but if it is not a header then that row won't be parsed by the BeanReader.
Is there an easy way of detecting the header without losing the first line of data?