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.
I found a solution.
By wrapping the provided
Reader using a
BufferedReader I could mark the beginning, read the first line, and then do
reader.reset() if it's not the header.