Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to set null string? #33

Closed
revyTH opened this issue Apr 29, 2019 · 1 comment
Closed

Option to set null string? #33

revyTH opened this issue Apr 29, 2019 · 1 comment
Labels

Comments

@revyTH
Copy link

revyTH commented Apr 29, 2019

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

@osiegmar
Copy link
Owner

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants