...
Option | Default | Description |
---|---|---|
mapping |
| The BeanIO mapping file. The option is mandatory. Is by default loaded from the classpath. You can prefix with |
streamName |
| The name of the stream to use. This option is mandatory. |
ignoreUnidentifiedRecords |
| Whether to ignore unidentified records. |
ignoreUnexpectedRecords |
| Whether to ignore unexpected records. |
ignoreInvalidRecords |
| Whether to ignore invalid records. |
encoding | Platform default | The charset to use. |
beanReaderErrorHandler |
| A custom BeanReaderErrorHandler implementation to use in your dataformat definition |
...
The 2nd route is for the reverse operation, to transform a List<Employee> into a stream of CSV data. Wiki Markup Wiki Markup
Using XML DSL
To use the BeanIO data format in XML, you need to configure it using the <beanio> XML tag as shown below. The routes is similar to the example above. Wiki Markup
Dependencies
To use BeanIO in your Camel routes you need to add a dependency on camel-beanio which implements this data format.
If you use Maven you can just add the following to your pom.xml, substituting the version number for the latest & greatest release (see the download page for the latest versions).
...
...