Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: fix some small typos and grammar

...

Option

Type

Description

config

CSVConfig

Can be used to set a custom CSVConfig object.

strategy

CSVStrategy Camel

uses by default Can be used to set a custom CSVStrategy; the default is CSVStrategy.DEFAULT_STRATEGY.

autogenColumns

boolean

Is default true. By default, Whether or not columns are autogenerated auto-generated in the resulting CSV. Subsequent The default value is true; subsequent messages use the previously created columns with new fields being added at the end of the line.

delimiter

String

Camel 2.4: Is default ,. Can be used to configure the delimiter, if it's not the comma The column delimiter to use; the default value is ",".

skipFirstLine

boolean

Camel 2.10: Is default false. While unmarshalling can be used Whether or not to skip the first line of a CSV input which contains the CSV headerswhen unmarshalling (e.g. if the content has headers on the first line); the default value is false.

Marshalling a Map to CSV

...

You can customize the CSV Data Format to make use of your own CVSConfig CSVConfig and/or CVSStrategy CSVStrategy. Also note that the default value of the autogenColumns option is true. The following example should illustrate this customization.

...