osiegmar/FastCSV

Option to set null string?

revyTH opened this issue · 1 comments

Null string default is written as "null". Should be present a setter to override the default null string

FastCSV writes a null string as an empty field, not as "null".

try (CsvAppender csv = new CsvWriter().append(new PrintWriter(System.out))) {
    csv.appendLine("foo", null, "bar");
}

prints: foo,,bar

If you want to transform null to some other value, why pass null to FastCSV?