public final class CSVFormat
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CSVFormat.Quote
When to apply the quote
|
| Constructor and Description |
|---|
CSVFormat() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
delimiter()
The delimiter to be used between CSV cells, defaulting to
",". |
CSVFormat |
delimiter(char newDelimiter)
The delimiter to be used between CSV cells, defaulting to
",". |
CSVFormat |
delimiter(java.lang.String newDelimiter)
The delimiter to be used between CSV cells, defaulting to
",". |
java.lang.String |
emptyString()
The string to be used for
"" values, defaulting to the
empty string. |
CSVFormat |
emptyString(java.lang.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 to
true. |
CSVFormat |
header(boolean newHeader)
Whether to emit a header row with column names, defaulting to
true. |
java.lang.String |
newline()
The string to be used to separate rows, defaulting to
\n. |
CSVFormat |
newline(java.lang.String newNewline)
The string to be used to separate rows, defaulting to
\n. |
java.lang.String |
nullString()
The string to be used for
null values, defaulting to the
empty string. |
CSVFormat |
nullString(java.lang.String newNullString)
The string to be used for
null values, defaulting to the
empty string. |
CSVFormat.Quote |
quote()
When to quote CSV content.
|
CSVFormat |
quote(CSVFormat.Quote newQuote)
When to quote CSV content.
|
java.lang.String |
quoteString()
The string used to quote values according to the rules specified in
quote(). |
CSVFormat |
quoteString(java.lang.String newQuoteString)
The string used to quote values according to the rules specified in
quote(). |
public CSVFormat delimiter(java.lang.String newDelimiter)
",".
Using "," |
a,b,c |
Using ";" |
a;b;c |
public CSVFormat delimiter(char newDelimiter)
",".
Using "," |
a,b,c |
Using ";" |
a;b;c |
public java.lang.String delimiter()
",".
Using "," |
a,b,c |
Using ";" |
a;b;c |
public CSVFormat nullString(java.lang.String newNullString)
null values, defaulting to the
empty string.
Using "" |
a,,c |
Using "\"\"" |
a,"",c |
Using "{null}" |
a,{null},c |
public java.lang.String nullString()
null values, defaulting to the
empty string.
Using "" |
a,,c |
Using "\"\"" |
a,"",c |
Using "{null}" |
a,{null},c |
public CSVFormat emptyString(java.lang.String newEmptyString)
"" values, defaulting to the
empty string.
Using "" |
a,,c |
Using "\"\"" |
a,"",c |
public java.lang.String emptyString()
"" values, defaulting to the
empty string.
Using "" |
a,,c |
Using "\"\"" |
a,"",c |
public CSVFormat newline(java.lang.String newNewline)
\n.public java.lang.String newline()
\n.public CSVFormat quoteString(java.lang.String newQuoteString)
quote().public java.lang.String quoteString()
quote().public CSVFormat quote(CSVFormat.Quote newQuote)
public CSVFormat.Quote quote()
public CSVFormat header(boolean newHeader)
true.public boolean header()
true.Copyright © 2018. All Rights Reserved.