Modifier and Type | Field and Description |
---|---|
static CSVFormat |
CSVFormat.DEFAULT
Standard Comma Separated Value format, as for
RFC4180 but allowing
empty lines. |
static CSVFormat |
CSVFormat.EXCEL
Excel file format (using a comma as the value delimiter).
|
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.MONGODB_CSV
Default MongoDB CSV format used by the
mongoexport operation. |
static CSVFormat |
CSVFormat.MONGODB_TSV
Default MongoDB TSV format used by the
mongoexport operation. |
static CSVFormat |
CSVFormat.MYSQL
Default MySQL format used by the
SELECT INTO OUTFILE and LOAD DATA INFILE operations. |
static CSVFormat |
CSVFormat.ORACLE
Default Oracle format used by the SQL*Loader utility.
|
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.Builder.build()
Builds a new CSVFormat instance.
|
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(String format)
Gets one of the predefined formats from
CSVFormat.Predefined . |
CSVFormat |
CSVFormat.withAllowDuplicateHeaderNames()
Deprecated.
|
CSVFormat |
CSVFormat.withAllowDuplicateHeaderNames(boolean allowDuplicateHeaderNames)
Deprecated.
|
CSVFormat |
CSVFormat.withAllowMissingColumnNames()
Deprecated.
|
CSVFormat |
CSVFormat.withAllowMissingColumnNames(boolean allowMissingColumnNames)
Deprecated.
|
CSVFormat |
CSVFormat.withAutoFlush(boolean autoFlush)
Deprecated.
|
CSVFormat |
CSVFormat.withCommentMarker(char commentMarker)
Deprecated.
|
CSVFormat |
CSVFormat.withCommentMarker(Character commentMarker)
Deprecated.
|
CSVFormat |
CSVFormat.withDelimiter(char delimiter)
Deprecated.
|
CSVFormat |
CSVFormat.withEscape(char escape)
Deprecated.
|
CSVFormat |
CSVFormat.withEscape(Character escape)
Deprecated.
|
CSVFormat |
CSVFormat.withFirstRecordAsHeader()
Deprecated.
|
CSVFormat |
CSVFormat.withHeader(Class<? extends Enum<?>> headerEnum)
Deprecated.
|
CSVFormat |
CSVFormat.withHeader(ResultSet resultSet)
Deprecated.
|
CSVFormat |
CSVFormat.withHeader(ResultSetMetaData resultSetMetaData)
Deprecated.
|
CSVFormat |
CSVFormat.withHeader(String... header)
Deprecated.
|
CSVFormat |
CSVFormat.withHeaderComments(Object... headerComments)
Deprecated.
|
CSVFormat |
CSVFormat.withIgnoreEmptyLines()
Deprecated.
|
CSVFormat |
CSVFormat.withIgnoreEmptyLines(boolean ignoreEmptyLines)
Deprecated.
|
CSVFormat |
CSVFormat.withIgnoreHeaderCase()
Deprecated.
|
CSVFormat |
CSVFormat.withIgnoreHeaderCase(boolean ignoreHeaderCase)
Deprecated.
|
CSVFormat |
CSVFormat.withIgnoreSurroundingSpaces()
Deprecated.
|
CSVFormat |
CSVFormat.withIgnoreSurroundingSpaces(boolean ignoreSurroundingSpaces)
Deprecated.
|
CSVFormat |
CSVFormat.withNullString(String nullString)
Deprecated.
|
CSVFormat |
CSVFormat.withQuote(char quoteChar)
Deprecated.
|
CSVFormat |
CSVFormat.withQuote(Character quoteChar)
Deprecated.
|
CSVFormat |
CSVFormat.withQuoteMode(QuoteMode quoteMode)
Deprecated.
|
CSVFormat |
CSVFormat.withRecordSeparator(char recordSeparator)
Deprecated.
|
CSVFormat |
CSVFormat.withRecordSeparator(String recordSeparator)
Deprecated.
|
CSVFormat |
CSVFormat.withSkipHeaderRecord()
Deprecated.
|
CSVFormat |
CSVFormat.withSkipHeaderRecord(boolean skipHeaderRecord)
Deprecated.
|
CSVFormat |
CSVFormat.withSystemRecordSeparator()
Deprecated.
|
CSVFormat |
CSVFormat.withTrailingDelimiter()
Deprecated.
|
CSVFormat |
CSVFormat.withTrailingDelimiter(boolean trailingDelimiter)
Deprecated.
|
CSVFormat |
CSVFormat.withTrim()
Deprecated.
|
CSVFormat |
CSVFormat.withTrim(boolean trim)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static CSVFormat.Builder |
CSVFormat.Builder.create(CSVFormat csvFormat)
Creates a new builder for the given format.
|
static CSVParser |
CSVParser.parse(File file,
Charset charset,
CSVFormat format)
Creates a parser for the given
File . |
static CSVParser |
CSVParser.parse(InputStream inputStream,
Charset charset,
CSVFormat format)
Creates a CSV parser using the given
CSVFormat . |
static CSVParser |
CSVParser.parse(Path path,
Charset charset,
CSVFormat format)
Creates and returns a parser for the given
Path , which the caller MUST close. |
static CSVParser |
CSVParser.parse(Reader reader,
CSVFormat format)
Creates a CSV parser using the given
CSVFormat |
static CSVParser |
CSVParser.parse(String string,
CSVFormat format)
Creates a parser for the given
String . |
static CSVParser |
CSVParser.parse(URL url,
Charset charset,
CSVFormat format)
Creates and returns a parser for the given URL, which the caller MUST close.
|
Constructor and Description |
---|
CSVParser(Reader reader,
CSVFormat format)
Constructs a new instance using the given
CSVFormat |
CSVParser(Reader reader,
CSVFormat format,
long characterOffset,
long recordNumber)
Constructs a new instance using the given
CSVFormat |
CSVPrinter(Appendable appendable,
CSVFormat format)
Creates a printer that will print values to the given stream following the CSVFormat.
|
Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.