次のアプローチでは、ヘッダーをスキップして読み取ることができます。
Iterable<CSVRecord> records = CSVFormat.EXCEL.withHeader().parse(in);
for (CSVRecord record : records) {
//here first record is not header
}
ヘッダー行以降のcsvを包括的に読み取るにはどうすればよいですか?
PS
アプローチ:
CSVFormat.EXCEL.withHeader().withSkipHeaderRecord(false).parse(in)
動作せず、同じ動作をします