Creates a new Builder for this instance.
Creates a new default builder.
Creates a new builder for the given format.
Sets the parser missing column names behavior,
true
to allow missing column names in the header line,
false
to cause an
IllegalArgumentException
to be thrown.
Sets whether to flush on close.
Sets the comment marker character, use null
to disable comments.
Sets the comment marker character, use null
to disable comments.
Sets the delimiter character.
Sets the delimiter character.
Sets the duplicate header names behavior.
CSVFormat.Builder.setEscape(char escapeCharacter)
Sets the escape character.
Sets the escape character.
Sets the header defined by the given
Enum
class.
Sets the header to the given values.
Sets the header from the result set metadata.
Sets the header from the result set metadata.
Sets the header comments to write before the CSV data.
Sets the header comments to write before the CSV data.
Sets the empty line skipping behavior, true
to ignore the empty lines between the records, false
to translate empty lines to empty
records.
Sets the parser case mapping behavior, true
to access name/values, false
to leave the mapping as is.
Sets the parser trimming behavior, true
to remove the surrounding spaces, false
to leave the spaces as is.
Sets whether reading end-of-file is allowed even when input is malformed, helps Excel compatibility.
Sets the String to convert to and from null
.
CSVFormat.Builder.setQuote(char quoteCharacter)
Sets the quote character.
Sets the quote character, use null
to disable.
Sets the quote policy to use for output.
Sets the record separator to use for output.
Sets the record separator to use for output.
Sets whether to skip the header record.
Sets whether reading trailing data is allowed in records, helps Excel compatibility.
Sets whether to add a trailing delimiter.
CSVFormat.Builder.setTrim(boolean trim)
Sets whether to trim leading and trailing blanks.
setDuplicateHeaderMode(DuplicateHeaderMode)
.