Closed OlivierLevrey closed 2 years ago
Thanks for your feedback!
The difference between reading and writing is:
When creating the API of FastCSV, I decided to design a Null-free API (see features). That way I can ensure, no one gets a NullPointerException when working with the API of this library.
Hence this design decision, I don't plan to offer a mechanism to read/return null values – not even with an optional strategy. If you really want to have nulls in your code, I'm afraid you have to add/convert them in your application code. Hope you can understand.
OK thank you for your quick reply.
QuoteStrategy.EMPTY is convenient if I want to differenciate empty strings from null values in the output file.
However there is no such parameter in CsvReader which means I cannot read back the original data.
Below is a unit test showing this:
It would be very nice to have the QuoteStrategy parameter in the reader.