Make feature "skip lines of zero length" configurable
A fast, programmer-friendly, free CSV library for Java
Brought to you by:
jamesbassett,
kbg
As mentioned here:
http://stackoverflow.com/questions/13797616/how-do-i-skip-white-space-only-lines-using-super-csv
Super CSV automatically skips lines of zero length (just a line terminator). Can you please make this behavior configurable so that this can be easily turned off?
I Think this is a reasonable request. Feel free to do the necesarry changes and send me a bundle and I'll merge it into the code base.
Sorry, but I'm not able to do the necessary changes on my own.
What seems to be the problem?
Can I ask why you don't want to skip empty lines? What would the result of reading an empty line be? For example if I read an empty line with CsvBeanReader what would it return? (as null indicates EOF). I think it should throw an exception. If you can give more background on why this is important that would be great.
In a sense it is fair enough to consider such a scenario an error situation like you say.
Sorry for my late answer! In some cases an empty line in an input file could mean missing data which implies an broken input file. In this scenario an exception would be helpful.
I'm not really into your code and I have no idea whether this new feature could be part of CsvPreference or not.