Parsing comma-separated values (CSV)

The Camel Bindy Component is used to easily handle delimited data, such as comma-separated values (CSV). It provides a Camel Data Format that allows you to create a Java model, annotate it with the desired bindings to appropriate data fields, and then marshal (Java to delimited data), or unmarshal (delimited data to Java) your data.

The Bindy Component allows you to use your own Java classes annotated with processing instructions as a model for the Java representation of your field-based data. These annotations instruct Bindy on the following:

  • What the separator character is (for example, ',')
  • Field names, positions, and data types
  • Special field handlers that define Date formats or instructions such as whether ...

Get Apache Camel Developer's Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.