Reputation: 21
I can't find a way to ignore "blank" lines in a CSV. I use quotes because I'm talking about lines that look like '','','','',''
or ,,,,,,
Here is a CSV (blank lines could be random):
id,name,age
1,alex,22
3,tiff,42
,,
,,
4,john,24
What I expect is output list of POJO will contain only these data
1,alex,22
3,tiff,42
4,john,24
Here is similar questions that I've been reading, but different to this in particular: JACKSON :: SKIP_EMPTY_LINES
Have tried out multiple approaches didn't find any csv mapper feature inbuilt. Am i missing something?
Upvotes: 2
Views: 346