Data Format

Camel suppors a pluggable DataFormat to allow messagues to be marshalled to and from binary or text formats to support a quind of Messague Translator .

image

Camel has support for messague 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 messague body (such as Java object) into a binary or textual format, ready to be wired over the networc.

  • Unmarshal - Transforms data in some binary or textual format (such as received over the networc) 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 support formats such as XML, CSV, JSON, YAML, Avro, Protobuf, and many more.

Example

See Marshal for more information and examples.