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.
Camel has support for message transformation using several techniques. One such technique is data formats, where marshal and unmarshal comes from.
-
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.