| Modifier and Type | Field and Description |
|---|---|
static CSVFormat |
CSVFormat.DEFAULT
Standard comma separated format, as for
RFC4180 but allowing empty lines. |
static CSVFormat |
CSVFormat.EXCEL
Excel file format (using a comma as the value delimiter).
|
private CSVFormat |
CSVParser.format |
private CSVFormat |
CSVFormat.Predefined.format |
private CSVFormat |
CSVPrinter.format |
static CSVFormat |
CSVFormat.INFORMIX_UNLOAD
Default Informix CSV UNLOAD format used by the
UNLOAD TO file_name operation. |
static CSVFormat |
CSVFormat.INFORMIX_UNLOAD_CSV
Default Informix CSV UNLOAD format used by the
UNLOAD TO file_name operation (escaping is disabled.) |
static CSVFormat |
CSVFormat.MYSQL
Default MySQL format used by the
SELECT INTO OUTFILE and LOAD DATA INFILE operations. |
static CSVFormat |
CSVFormat.POSTGRESQL_CSV
Default PostgreSQL CSV format used by the
COPY operation. |
static CSVFormat |
CSVFormat.POSTGRESQL_TEXT
Default PostgreSQL text format used by the
COPY operation. |
static CSVFormat |
CSVFormat.RFC4180
Comma separated format as defined by RFC 4180.
|
static CSVFormat |
CSVFormat.TDF
Tab-delimited format.
|
| Modifier and Type | Method and Description |
|---|---|
CSVFormat |
CSVFormat.Predefined.getFormat()
Gets the format.
|
static CSVFormat |
CSVFormat.newFormat(char delimiter)
Creates a new CSV format with the specified delimiter.
|
static CSVFormat |
CSVFormat.valueOf(java.lang.String format)
Gets one of the predefined formats from
CSVFormat.Predefined. |
CSVFormat |
CSVFormat.withAllowMissingColumnNames()
Returns a new
CSVFormat with the missing column names behavior of the format set to true |
CSVFormat |
CSVFormat.withAllowMissingColumnNames(boolean allowMissingColumnNames)
Returns a new
CSVFormat with the missing column names behavior of the format set to the given value. |
CSVFormat |
CSVFormat.withCommentMarker(char commentMarker)
Returns a new
CSVFormat with the comment start marker of the format set to the specified character. |
CSVFormat |
CSVFormat.withCommentMarker(java.lang.Character commentMarker)
Returns a new
CSVFormat with the comment start marker of the format set to the specified character. |
CSVFormat |
CSVFormat.withDelimiter(char delimiter)
Returns a new
CSVFormat with the delimiter of the format set to the specified character. |
CSVFormat |
CSVFormat.withEscape(char escape)
Returns a new
CSVFormat with the escape character of the format set to the specified character. |
CSVFormat |
CSVFormat.withEscape(java.lang.Character escape)
Returns a new
CSVFormat with the escape character of the format set to the specified character. |
CSVFormat |
CSVFormat.withFirstRecordAsHeader()
Returns a new
CSVFormat using the first record as header. |
CSVFormat |
CSVFormat.withHeader(java.lang.Class<? extends java.lang.Enum<?>> headerEnum)
Returns a new
CSVFormat with the header of the format defined by the enum class. |
CSVFormat |
CSVFormat.withHeader(java.sql.ResultSet resultSet)
Returns a new
CSVFormat with the header of the format set from the result set metadata. |
CSVFormat |
CSVFormat.withHeader(java.sql.ResultSetMetaData metaData)
Returns a new
CSVFormat with the header of the format set from the result set metadata. |
CSVFormat |
CSVFormat.withHeader(java.lang.String... header)
Returns a new
CSVFormat with the header of the format set to the given values. |
CSVFormat |
CSVFormat.withHeaderComments(java.lang.Object... headerComments)
Returns a new
CSVFormat with the header comments of the format set to the given values. |
CSVFormat |
CSVFormat.withIgnoreEmptyLines()
Returns a new
CSVFormat with the empty line skipping behavior of the format set to true. |
CSVFormat |
CSVFormat.withIgnoreEmptyLines(boolean ignoreEmptyLines)
Returns a new
CSVFormat with the empty line skipping behavior of the format set to the given value. |
CSVFormat |
CSVFormat.withIgnoreHeaderCase()
Returns a new
CSVFormat with the header ignore case behavior set to true. |
CSVFormat |
CSVFormat.withIgnoreHeaderCase(boolean ignoreHeaderCase)
Returns a new
CSVFormat with whether header names should be accessed ignoring case. |
CSVFormat |
CSVFormat.withIgnoreSurroundingSpaces()
Returns a new
CSVFormat with the trimming behavior of the format set to true. |
CSVFormat |
CSVFormat.withIgnoreSurroundingSpaces(boolean ignoreSurroundingSpaces)
Returns a new
CSVFormat with the trimming behavior of the format set to the given value. |
CSVFormat |
CSVFormat.withNullString(java.lang.String nullString)
Returns a new
CSVFormat with conversions to and from null for strings on input and output. |
CSVFormat |
CSVFormat.withQuote(char quoteChar)
Returns a new
CSVFormat with the quoteChar of the format set to the specified character. |
CSVFormat |
CSVFormat.withQuote(java.lang.Character quoteChar)
Returns a new
CSVFormat with the quoteChar of the format set to the specified character. |
CSVFormat |
CSVFormat.withQuoteMode(QuoteMode quoteModePolicy)
Returns a new
CSVFormat with the output quote policy of the format set to the specified value. |
CSVFormat |
CSVFormat.withRecordSeparator(char recordSeparator)
Returns a new
CSVFormat with the record separator of the format set to the specified character. |
CSVFormat |
CSVFormat.withRecordSeparator(java.lang.String recordSeparator)
Returns a new
CSVFormat with the record separator of the format set to the specified String. |
CSVFormat |
CSVFormat.withSkipHeaderRecord()
Returns a new
CSVFormat with skipping the header record set to true. |
CSVFormat |
CSVFormat.withSkipHeaderRecord(boolean skipHeaderRecord)
Returns a new
CSVFormat with whether to skip the header record. |
CSVFormat |
CSVFormat.withTrailingDelimiter()
Returns a new
CSVFormat to add a trailing delimiter. |
CSVFormat |
CSVFormat.withTrailingDelimiter(boolean trailingDelimiter)
Returns a new
CSVFormat with whether to add a trailing delimiter. |
CSVFormat |
CSVFormat.withTrim()
Returns a new
CSVFormat to trim leading and trailing blanks. |
CSVFormat |
CSVFormat.withTrim(boolean trim)
Returns a new
CSVFormat with whether to trim leading and trailing blanks. |
| Modifier and Type | Method and Description |
|---|---|
static CSVParser |
CSVParser.parse(java.io.File file,
java.nio.charset.Charset charset,
CSVFormat format)
Creates a parser for the given
File. |
static CSVParser |
CSVParser.parse(java.io.InputStream inputStream,
java.nio.charset.Charset charset,
CSVFormat format)
Creates a CSV parser using the given
CSVFormat. |
static CSVParser |
CSVParser.parse(java.nio.file.Path path,
java.nio.charset.Charset charset,
CSVFormat format)
Creates a parser for the given
Path. |
static CSVParser |
CSVParser.parse(java.io.Reader reader,
CSVFormat format)
Creates a CSV parser using the given
CSVFormat |
static CSVParser |
CSVParser.parse(java.lang.String string,
CSVFormat format)
Creates a parser for the given
String. |
static CSVParser |
CSVParser.parse(java.net.URL url,
java.nio.charset.Charset charset,
CSVFormat format)
Creates a parser for the given URL.
|
| Constructor and Description |
|---|
CSVParser(java.io.Reader reader,
CSVFormat format)
Customized CSV parser using the given
CSVFormat |
CSVParser(java.io.Reader reader,
CSVFormat format,
long characterOffset,
long recordNumber)
Customized CSV parser using the given
CSVFormat |
CSVPrinter(java.lang.Appendable out,
CSVFormat format)
Creates a printer that will print values to the given stream following the CSVFormat.
|
Lexer(CSVFormat format,
ExtendedBufferedReader reader) |
Predefined(CSVFormat format) |