uniVocity CSV

Marshal and unmarshal Java objects from and to CSV (Comma Separated Values) using UniVocity Parsers

What’s inside

Please refer to the above links for usage and configuration details.

Maven coordinates

<dependency>
    <groupId>org.apache.camel.springboot</groupId>
    <artifactId>camel-univocity-parsers-starter</artifactId>
</dependency>

Spring Boot Auto-Configuration

The starter supports 50 options, which are listed below.

Name Description Default Type

camel.dataformat.univocity-csv.as-map

Whether the unmarshalling should produce maps for the lines values instead of lists. It requires to have header (either defined or collected).

false

Boolean

camel.dataformat.univocity-csv.comment

The comment symbol.

#

String

camel.dataformat.univocity-csv.delimiter

The delimiter of values.

,

String

camel.dataformat.univocity-csv.empty-value

The String representation of an empty value.

String

camel.dataformat.univocity-csv.enabled

Whether to enable auto configuration of the univocityCsv data format. This is enabled by default.

Boolean

camel.dataformat.univocity-csv.header-extraction-enabled

Whether or not the header must be read in the first line of the test document.

false

Boolean

camel.dataformat.univocity-csv.headers-disabled

Whether or not the headers are disabled. When defined, this option explicitly sets the headers as null which indicates that there is no header.

false

Boolean

camel.dataformat.univocity-csv.ignore-leading-whitespaces

Whether or not the leading white spaces must be ignored.

true

Boolean

camel.dataformat.univocity-csv.ignore-trailing-whitespaces

Whether or not the trailing white spaces must be ignored.

true

Boolean

camel.dataformat.univocity-csv.lazy-load

Whether the unmarshalling should produce an iterator that reads the lines on the fly or if all the lines must be read at once.

false

Boolean

camel.dataformat.univocity-csv.line-separator

The line separator of the files. The default value is to use the JVM platform line separator.

String

camel.dataformat.univocity-csv.normalized-line-separator

The normalized line separator of the files. The default value is a new line character.

String

camel.dataformat.univocity-csv.null-value

The string representation of a null value.

String

camel.dataformat.univocity-csv.number-of-records-to-read

The maximum number of record to read.

Integer

camel.dataformat.univocity-csv.quote

The quote symbol.

"

String

camel.dataformat.univocity-csv.quote-all-fields

Whether or not all values must be quoted when writing them.

false

Boolean

camel.dataformat.univocity-csv.quote-escape

The quote escape symbol.

"

String

camel.dataformat.univocity-csv.skip-empty-lines

Whether or not the empty lines must be ignored.

true

Boolean

camel.dataformat.univocity-fixed.as-map

Whether the unmarshalling should produce maps for the lines values instead of lists. It requires to have header (either defined or collected).

false

Boolean

camel.dataformat.univocity-fixed.comment

The comment symbol.

#

String

camel.dataformat.univocity-fixed.empty-value

The String representation of an empty value.

String

camel.dataformat.univocity-fixed.enabled

Whether to enable auto configuration of the univocityFixed data format. This is enabled by default.

Boolean

camel.dataformat.univocity-fixed.header-extraction-enabled

Whether or not the header must be read in the first line of the test document.

false

Boolean

camel.dataformat.univocity-fixed.headers-disabled

Whether or not the headers are disabled. When defined, this option explicitly sets the headers as null which indicates that there is no header.

false

Boolean

camel.dataformat.univocity-fixed.ignore-leading-whitespaces

Whether or not the leading white spaces must be ignored.

true

Boolean

camel.dataformat.univocity-fixed.ignore-trailing-whitespaces

Whether or not the trailing white spaces must be ignored.

true

Boolean

camel.dataformat.univocity-fixed.lazy-load

Whether the unmarshalling should produce an iterator that reads the lines on the fly or if all the lines must be read at once.

false

Boolean

camel.dataformat.univocity-fixed.line-separator

The line separator of the files. The default value is to use the JVM platform line separator.

String

camel.dataformat.univocity-fixed.normalized-line-separator

The normalized line separator of the files. The default value is a new line character.

String

camel.dataformat.univocity-fixed.null-value

The string representation of a null value.

String

camel.dataformat.univocity-fixed.number-of-records-to-read

The maximum number of record to read.

Integer

camel.dataformat.univocity-fixed.padding

The padding character. The default value is a space.

String

camel.dataformat.univocity-fixed.record-ends-on-newline

Whether the record ends on a new line.

false

Boolean

camel.dataformat.univocity-fixed.skip-empty-lines

Whether or not the empty lines must be ignored.

true

Boolean

camel.dataformat.univocity-fixed.skip-trailing-chars-until-newline

Whether to skip trailing characters until a new line is found.

false

Boolean

camel.dataformat.univocity-tsv.as-map

Whether the unmarshalling should produce maps for the lines values instead of lists. It requires to have header (either defined or collected).

false

Boolean

camel.dataformat.univocity-tsv.comment

The comment symbol.

#

String

camel.dataformat.univocity-tsv.empty-value

The String representation of an empty value.

String

camel.dataformat.univocity-tsv.enabled

Whether to enable auto configuration of the univocityTsv data format. This is enabled by default.

Boolean

camel.dataformat.univocity-tsv.escape-char

The escape character.

\

String

camel.dataformat.univocity-tsv.header-extraction-enabled

Whether or not the header must be read in the first line of the test document.

false

Boolean

camel.dataformat.univocity-tsv.headers-disabled

Whether or not the headers are disabled. When defined, this option explicitly sets the headers as null which indicates that there is no header.

false

Boolean

camel.dataformat.univocity-tsv.ignore-leading-whitespaces

Whether or not the leading white spaces must be ignored.

true

Boolean

camel.dataformat.univocity-tsv.ignore-trailing-whitespaces

Whether or not the trailing white spaces must be ignored.

true

Boolean

camel.dataformat.univocity-tsv.lazy-load

Whether the unmarshalling should produce an iterator that reads the lines on the fly or if all the lines must be read at once.

false

Boolean

camel.dataformat.univocity-tsv.line-separator

The line separator of the files. The default value is to use the JVM platform line separator.

String

camel.dataformat.univocity-tsv.normalized-line-separator

The normalized line separator of the files. The default value is a new line character.

String

camel.dataformat.univocity-tsv.null-value

The string representation of a null value.

String

camel.dataformat.univocity-tsv.number-of-records-to-read

The maximum number of record to read.

Integer

camel.dataformat.univocity-tsv.skip-empty-lines

Whether or not the empty lines must be ignored.

true

Boolean