ignore "blank" (unfilled) row with jackson csv

220 Views Asked by At

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?

0

There are 0 best solutions below