Package tech.tablesaw.io.csv
Class CsvWriteOptions.Builder
java.lang.Object
tech.tablesaw.io.WriteOptions.Builder
tech.tablesaw.io.csv.CsvWriteOptions.Builder
- Enclosing class:
- CsvWriteOptions
-
Field Summary
Fields inherited from class tech.tablesaw.io.WriteOptions.Builder
autoClose, dest
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
protected
Builder
(OutputStream stream) protected
protected
protected
Builder
(Destination dest) -
Method Summary
Modifier and TypeMethodDescriptionbuild()
dateFormatter
(DateTimeFormatter dateFormatter) Deprecated.dateTimeFormatter
(DateTimeFormatter dateTimeFormatter) Deprecated.escapeChar
(char escapeChar) header
(boolean header) ignoreLeadingWhitespaces
(boolean ignoreLeadingWhitespaces) ignoreTrailingWhitespaces
(boolean ignoreTrailingWhitespaces) quoteAllFields
(boolean quoteAll) Causes all data exported as a CSV file to be enclosed in quotes.quoteChar
(char quoteChar) separator
(char separator) transformColumnNames
(Map<String, String> nameMap) Transform one or more column names as they are written to a file.usePrintFormatters
(boolean useFormatter) Sets the usePrintFormatters option @link{tech.tablesaw.columns.ColumnFormatter} When true, printFormatters will be used in writing the output text for any column that has one.
-
Constructor Details
-
Builder
-
Builder
-
Builder
-
Builder
-
Builder
-
-
Method Details
-
separator
-
transformColumnNames
Transform one or more column names as they are written to a file. The original column name is unchanged.- Parameters:
nameMap
- A map from existing column names to the desired output name
-
quoteChar
-
dateFormatter
Deprecated.Writes date column output using the given DateFormatter -
dateTimeFormatter
Deprecated.Writes DateTime column output using the given DateFormatter -
usePrintFormatters
Sets the usePrintFormatters option @link{tech.tablesaw.columns.ColumnFormatter} When true, printFormatters will be used in writing the output text for any column that has one. -
quoteAllFields
Causes all data exported as a CSV file to be enclosed in quotes. Note that this includes the headers, and all columns regardless of type- Parameters:
quoteAll
- true, to cause all data and column headers to be quoted.- Returns:
- this CsvWriteOptionsBuilder
-
escapeChar
-
lineEnd
-
header
-
ignoreLeadingWhitespaces
-
ignoreTrailingWhitespaces
-
build
-