- java.lang.Object
- 
- org.jooq.CSVFormat
 
- 
 public final class CSVFormat extends Object A CSV formatting type, which can be used to configure CSV imports / exports.- Author:
- Lukas Eder
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classCSVFormat.QuoteWhen to apply the quote
 - 
Constructor SummaryConstructors Constructor Description CSVFormat()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdelimiter()The delimiter to be used between CSV cells, defaulting to",".CSVFormatdelimiter(char newDelimiter)The delimiter to be used between CSV cells, defaulting to",".CSVFormatdelimiter(String newDelimiter)The delimiter to be used between CSV cells, defaulting to",".StringemptyString()The string to be used for""values, defaulting to the empty string.CSVFormatemptyString(String newEmptyString)The string to be used for""values, defaulting to the empty string.booleanheader()Whether to emit a header row with column names, defaulting totrue.CSVFormatheader(boolean newHeader)Whether to emit a header row with column names, defaulting totrue.Stringnewline()The string to be used to separate rows, defaulting to\n.CSVFormatnewline(String newNewline)The string to be used to separate rows, defaulting to\n.StringnullString()The string to be used fornullvalues, defaulting to the empty string.CSVFormatnullString(String newNullString)The string to be used fornullvalues, defaulting to the empty string.CSVFormat.Quotequote()When to quote CSV content.CSVFormatquote(CSVFormat.Quote newQuote)When to quote CSV content.StringquoteString()The string used to quote values according to the rules specified inquote().CSVFormatquoteString(String newQuoteString)The string used to quote values according to the rules specified inquote().
 
- 
- 
- 
Method Detail- 
delimiterpublic CSVFormat delimiter(String newDelimiter) The delimiter to be used between CSV cells, defaulting to",".Using ","a,b,cUsing ";"a;b;c
 - 
delimiterpublic CSVFormat delimiter(char newDelimiter) The delimiter to be used between CSV cells, defaulting to",".Using ","a,b,cUsing ";"a;b;c
 - 
delimiterpublic String delimiter() The delimiter to be used between CSV cells, defaulting to",".Using ","a,b,cUsing ";"a;b;c
 - 
nullStringpublic CSVFormat nullString(String newNullString) The string to be used fornullvalues, defaulting to the empty string.Using ""a,,cUsing "\"\""a,"",cUsing "{null}"a,{null},c
 - 
nullStringpublic String nullString() The string to be used fornullvalues, defaulting to the empty string.Using ""a,,cUsing "\"\""a,"",cUsing "{null}"a,{null},c
 - 
emptyStringpublic CSVFormat emptyString(String newEmptyString) The string to be used for""values, defaulting to the empty string.Using ""a,,cUsing "\"\""a,"",c
 - 
emptyStringpublic String emptyString() The string to be used for""values, defaulting to the empty string.Using ""a,,cUsing "\"\""a,"",c
 - 
newlinepublic CSVFormat newline(String newNewline) The string to be used to separate rows, defaulting to\n.
 - 
newlinepublic String newline() The string to be used to separate rows, defaulting to\n.
 - 
quoteStringpublic CSVFormat quoteString(String newQuoteString) The string used to quote values according to the rules specified inquote().
 - 
quoteStringpublic String quoteString() The string used to quote values according to the rules specified inquote().
 - 
quotepublic CSVFormat quote(CSVFormat.Quote newQuote) When to quote CSV content.
 - 
quotepublic CSVFormat.Quote quote() When to quote CSV content.
 - 
headerpublic CSVFormat header(boolean newHeader) Whether to emit a header row with column names, defaulting totrue.
 - 
headerpublic boolean header() Whether to emit a header row with column names, defaulting totrue.
 
- 
 
-