Uses of Class
org.apache.commons.csv.CSVFormat
-
Uses of CSVFormat in org.apache.commons.csv
Modifier and TypeFieldDescriptionstatic final CSVFormat
CSVFormat.DEFAULT
Standard Comma Separated Value format, as forRFC4180
but allowing empty lines.static final CSVFormat
CSVFormat.EXCEL
Excel file format (using a comma as the value delimiter).static final CSVFormat
CSVFormat.INFORMIX_UNLOAD
Default Informix CSV UNLOAD format used by theUNLOAD TO file_name
operation.static final CSVFormat
CSVFormat.INFORMIX_UNLOAD_CSV
Default Informix CSV UNLOAD format used by theUNLOAD TO file_name
operation (escaping is disabled.)static final CSVFormat
CSVFormat.MONGODB_CSV
Default MongoDB CSV format used by themongoexport
operation.static final CSVFormat
CSVFormat.MONGODB_TSV
Default MongoDB TSV format used by themongoexport
operation.static final CSVFormat
CSVFormat.MYSQL
Default MySQL format used by theSELECT INTO OUTFILE
andLOAD DATA INFILE
operations.static final CSVFormat
CSVFormat.ORACLE
Default Oracle format used by the SQL*Loader utility.static final CSVFormat
CSVFormat.POSTGRESQL_CSV
Default PostgreSQL CSV format used by theCOPY
operation.static final CSVFormat
CSVFormat.POSTGRESQL_TEXT
Default PostgreSQL text format used by theCOPY
operation.static final CSVFormat
CSVFormat.RFC4180
Comma separated format as defined by RFC 4180.static final CSVFormat
CSVFormat.TDF
Tab-delimited format.Modifier and TypeMethodDescriptionCSVFormat.Builder.build()
Builds a new CSVFormat instance.CSVFormat.Predefined.getFormat()
Gets the format.static CSVFormat
CSVFormat.newFormat
(char delimiter) Creates a new CSV format with the specified delimiter.static CSVFormat
Gets one of the predefined formats fromCSVFormat.Predefined
.CSVFormat.withAllowDuplicateHeaderNames()
Deprecated.CSVFormat.withAllowDuplicateHeaderNames
(boolean allowDuplicateHeaderNames) Deprecated.CSVFormat.withAllowMissingColumnNames()
Deprecated.CSVFormat.withAllowMissingColumnNames
(boolean allowMissingColumnNames) Deprecated.CSVFormat.withAutoFlush
(boolean autoFlush) Deprecated.CSVFormat.withCommentMarker
(char commentMarker) Deprecated.CSVFormat.withCommentMarker
(Character commentMarker) Deprecated.CSVFormat.withDelimiter
(char delimiter) Deprecated.CSVFormat.withEscape
(char escape) Deprecated.CSVFormat.withEscape
(Character escape) Deprecated.CSVFormat.withFirstRecordAsHeader()
Deprecated.CSVFormat.withHeader
(Class<? extends Enum<?>> headerEnum) Deprecated.CSVFormat.withHeader
(String... header) Deprecated.CSVFormat.withHeader
(ResultSet resultSet) Deprecated.CSVFormat.withHeader
(ResultSetMetaData resultSetMetaData) Deprecated.CSVFormat.withHeaderComments
(Object... headerComments) Deprecated.CSVFormat.withIgnoreEmptyLines()
Deprecated.CSVFormat.withIgnoreEmptyLines
(boolean ignoreEmptyLines) Deprecated.CSVFormat.withIgnoreHeaderCase()
Deprecated.CSVFormat.withIgnoreHeaderCase
(boolean ignoreHeaderCase) Deprecated.CSVFormat.withIgnoreSurroundingSpaces()
Deprecated.CSVFormat.withIgnoreSurroundingSpaces
(boolean ignoreSurroundingSpaces) Deprecated.CSVFormat.withNullString
(String nullString) Deprecated.CSVFormat.withQuote
(char quoteChar) Deprecated.Deprecated.CSVFormat.withQuoteMode
(QuoteMode quoteMode) Deprecated.CSVFormat.withRecordSeparator
(char recordSeparator) Deprecated.CSVFormat.withRecordSeparator
(String recordSeparator) Deprecated.CSVFormat.withSkipHeaderRecord()
Deprecated.CSVFormat.withSkipHeaderRecord
(boolean skipHeaderRecord) Deprecated.CSVFormat.withSystemRecordSeparator()
Deprecated.CSVFormat.withTrailingDelimiter()
Deprecated.CSVFormat.withTrailingDelimiter
(boolean trailingDelimiter) Deprecated.CSVFormat.withTrim()
Deprecated.CSVFormat.withTrim
(boolean trim) Deprecated.Modifier and TypeMethodDescriptionstatic CSVFormat.Builder
Creates a new builder for the given format.static CSVParser
Creates a parser for the givenFile
.static CSVParser
CSVParser.parse
(InputStream inputStream, Charset charset, CSVFormat format) Creates a CSV parser using the givenCSVFormat
.static CSVParser
Creates a CSV parser using the givenCSVFormat
static CSVParser
Creates a parser for the givenString
.static CSVParser
Creates and returns a parser for the given URL, which the caller MUST close.static CSVParser
Creates and returns a parser for the givenPath
, which the caller MUST close.ModifierConstructorDescriptionConstructs a new instance using the givenCSVFormat
Constructs a new instance using the givenCSVFormat
CSVPrinter
(Appendable appendable, CSVFormat format) Creates a printer that will print values to the given stream following the CSVFormat.
Builder#setAllowDuplicateHeaderNames(true)