Uses of Class
org.apache.commons.csv.CSVFormat.Builder
-
Uses of CSVFormat.Builder in org.apache.commons.csv
Methods in org.apache.commons.csv that return CSVFormat.BuilderModifier and TypeMethodDescriptionCSVFormat.builder()
Creates a new Builder for this instance.static CSVFormat.Builder
CSVFormat.Builder.create()
Creates a new default builder, as forCSVFormat.RFC4180
but allowing empty lines.static CSVFormat.Builder
Creates a new builder from the given format.CSVFormat.Builder.setAllowDuplicateHeaderNames
(boolean allowDuplicateHeaderNames) Deprecated.CSVFormat.Builder.setAllowMissingColumnNames
(boolean allowMissingColumnNames) Sets the parser missing column names behavior,true
to allow missing column names in the header line,false
to cause anIllegalArgumentException
to be thrown.CSVFormat.Builder.setAutoFlush
(boolean autoFlush) Sets whether to flush on close.CSVFormat.Builder.setCommentMarker
(char commentMarker) Sets the comment marker character, usenull
to disable comments.CSVFormat.Builder.setCommentMarker
(Character commentMarker) Sets the comment marker character, usenull
to disable comments.CSVFormat.Builder.setDelimiter
(char delimiter) Sets the delimiter character.CSVFormat.Builder.setDelimiter
(String delimiter) Sets the delimiter character.CSVFormat.Builder.setDuplicateHeaderMode
(DuplicateHeaderMode duplicateHeaderMode) 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 givenEnum
class.Sets the header to the given values.Sets the header from the result set metadata.CSVFormat.Builder.setHeader
(ResultSetMetaData resultSetMetaData) Sets the header from the result set metadata.CSVFormat.Builder.setHeaderComments
(Object... headerComments) Sets the header comments to write before the CSV data.CSVFormat.Builder.setHeaderComments
(String... headerComments) Sets the header comments to write before the CSV data.CSVFormat.Builder.setIgnoreEmptyLines
(boolean ignoreEmptyLines) Sets the empty line skipping behavior,true
to ignore the empty lines between the records,false
to translate empty lines to empty records.CSVFormat.Builder.setIgnoreHeaderCase
(boolean ignoreHeaderCase) Sets the parser case mapping behavior,true
to access name/values,false
to leave the mapping as is.CSVFormat.Builder.setIgnoreSurroundingSpaces
(boolean ignoreSurroundingSpaces) Sets the parser trimming behavior,true
to remove the surrounding spaces,false
to leave the spaces as is.CSVFormat.Builder.setLenientEof
(boolean lenientEof) Sets whether reading end-of-file is allowed even when input is malformed, helps Excel compatibility.CSVFormat.Builder.setNullString
(String nullString) Sets the String to convert to and fromnull
.CSVFormat.Builder.setQuote
(char quoteCharacter) Sets the quote character.Sets the quote character, usenull
to disable.CSVFormat.Builder.setQuoteMode
(QuoteMode quoteMode) Sets the quote policy to use for output.CSVFormat.Builder.setRecordSeparator
(char recordSeparator) Sets the record separator to use for output.CSVFormat.Builder.setRecordSeparator
(String recordSeparator) Sets the record separator to use for output.CSVFormat.Builder.setSkipHeaderRecord
(boolean skipHeaderRecord) Sets whether to skip the header record.CSVFormat.Builder.setTrailingData
(boolean trailingData) Sets whether reading trailing data is allowed in records, helps Excel compatibility.CSVFormat.Builder.setTrailingDelimiter
(boolean trailingDelimiter) Sets whether to add a trailing delimiter.CSVFormat.Builder.setTrim
(boolean trim) Sets whether to trim leading and trailing blanks.
setDuplicateHeaderMode(DuplicateHeaderMode)
.