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 String contents should be trimmed
In addition, Bindy provides you with the ability to map a (limited) graph of objects to single row-delimited record.
This recipe will show you how to use the Bindy Component to convert CSV-formatted data.