Data Format

Camel supports a pluggable DataFormat to allow messages to be marshalled to and from binary or text formats to support a kind of Message Translator.

image

Camel has support for message transformation using several techniques. One such technique is data formats, where marshal and unmarshal comes from.

So in other words the Marshal and Unmarshal EIPs are used data formats.

  • Marshal - Transforms the message body (such as Java object) into a binary or textual format, ready to be wired over the network.

  • Unmarshal - Transforms data in some binary or textual format (such as received over the network) into a Java object; or some other representation according to the data format being used.

Supported data formats

There are more than 40 different data formats that supports formats such as XML, CSV, JSon, YAML, Avro, Protobuf, and many more.

Example

See Marshal for more information and examples.