I have an EXCEL CSV file with this content:
access_id;logicalgate
123456789;TEST
As you can see header has strings and are not quoted.
With this code:
fileReader = new BufferedReader(new InputStreamReader(inputStream, "UTF-8"));
csvParser = new CSVParser(fileReader, CSVFormat.EXCEL.withNullString("").withFirstRecordAsHeader().withIgnoreHeaderCase().withQuoteMode(QuoteMode.MINIMAL).withIgnoreEmptyLines().withTrim());
The output of this command:
csvParser.getHeaderMap()
Is a single element map!
(java.util.TreeMap<K,V>) {access_id;logicalgate=0}
With a concatendated key "access_id;logicalgate"
Why the parser is missing the header separation?