java.lang.Object
org.jooq.CSVFormat
A CSV formatting type, which can be used to configure CSV imports / exports.
The type is immutable, meaning calls to setters like delimiter(char)
do not modify the original reference, but return a new one instead.
- Author:
- Lukas Eder
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull String
The delimiter to be used between CSV cells, defaulting to","
.@NotNull CSVFormat
delimiter
(char newDelimiter) The delimiter to be used between CSV cells, defaulting to","
.@NotNull CSVFormat
The delimiter to be used between CSV cells, defaulting to","
.@NotNull String
The string to be used for""
values, defaulting to the empty string.@NotNull CSVFormat
emptyString
(String newEmptyString) The string to be used for""
values, defaulting to the empty string.boolean
header()
Whether to emit a header row with column names, defaulting totrue
.@NotNull CSVFormat
header
(boolean newHeader) Whether to emit a header row with column names, defaulting totrue
.@NotNull String
newline()
The string to be used to separate rows, defaulting to\n
.@NotNull CSVFormat
The string to be used to separate rows, defaulting to\n
.@NotNull String
The string to be used fornull
values, defaulting to the empty string.@NotNull CSVFormat
nullString
(String newNullString) The string to be used fornull
values, defaulting to the empty string.@NotNull CSVFormat.Quote
quote()
When to quote CSV content.@NotNull CSVFormat
quote
(CSVFormat.Quote newQuote) When to quote CSV content.@NotNull String
The string used to quote values according to the rules specified inquote()
.@NotNull CSVFormat
quoteString
(String newQuoteString) The string used to quote values according to the rules specified inquote()
.
-
Field Details
-
DEFAULT
-
-
Constructor Details
-
CSVFormat
public CSVFormat()
-
-
Method Details
-
delimiter
The delimiter to be used between CSV cells, defaulting to","
.Using ","
a,b,c
Using ";"
a;b;c
-
delimiter
The delimiter to be used between CSV cells, defaulting to","
.Using ","
a,b,c
Using ";"
a;b;c
-
delimiter
The delimiter to be used between CSV cells, defaulting to","
.Using ","
a,b,c
Using ";"
a;b;c
-
nullString
The string to be used fornull
values, defaulting to the empty string.Using ""
a,,c
Using "\"\""
a,"",c
Using "{null}"
a,{null},c
-
nullString
The string to be used fornull
values, defaulting to the empty string.Using ""
a,,c
Using "\"\""
a,"",c
Using "{null}"
a,{null},c
-
emptyString
The string to be used for""
values, defaulting to the empty string.Using ""
a,,c
Using "\"\""
a,"",c
-
emptyString
The string to be used for""
values, defaulting to the empty string.Using ""
a,,c
Using "\"\""
a,"",c
-
newline
The string to be used to separate rows, defaulting to\n
. -
newline
The string to be used to separate rows, defaulting to\n
. -
quoteString
The string used to quote values according to the rules specified inquote()
. -
quoteString
The string used to quote values according to the rules specified inquote()
. -
quote
When to quote CSV content. -
quote
When to quote CSV content. -
header
Whether to emit a header row with column names, defaulting totrue
. -
header
public boolean header()Whether to emit a header row with column names, defaulting totrue
.
-