Added serialization dataformat docs to Gitbook
Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/a5ef24be Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/a5ef24be Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/a5ef24be Branch: refs/heads/master Commit: a5ef24be545575bee5457e08d3e1518454033ebb Parents: 002dc74 Author: Andrea Cosentino <anco...@gmail.com> Authored: Wed Aug 31 09:59:27 2016 +0200 Committer: Andrea Cosentino <anco...@gmail.com> Committed: Wed Aug 31 09:59:27 2016 +0200 ---------------------------------------------------------------------- .../src/main/docs/serialization-dataformat.adoc | 31 ++++++++++++++++++++ 1 file changed, 31 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/a5ef24be/camel-core/src/main/docs/serialization-dataformat.adoc ---------------------------------------------------------------------- diff --git a/camel-core/src/main/docs/serialization-dataformat.adoc b/camel-core/src/main/docs/serialization-dataformat.adoc new file mode 100644 index 0000000..184326f --- /dev/null +++ b/camel-core/src/main/docs/serialization-dataformat.adoc @@ -0,0 +1,31 @@ +[[Serialization-Serialization]] +Serialization +~~~~~~~~~~~~~ + +Serialization is a link:data-format.html[Data Format] which uses the +standard Java Serialization mechanism to unmarshal a binary payload into +Java objects or to marshal Java objects into a binary blob. + + For example the following uses Java serialization to unmarshal a binary +file then send it as an ObjectMessage to link:activemq.html[ActiveMQ] + +[source,java] +------------------------------ +from("file://foo/bar"). + unmarshal().serialization(). + to("activemq:Some.Queue"); +------------------------------ + +[[Serialization-Options]] +Options +^^^^^^^ + +// dataformat options: START +The Java Object Serialization dataformat has no options. +// dataformat options: END + +[[Serialization-Dependencies]] +Dependencies +^^^^^^^^^^^^ + +This data format is provided in *camel-core* so no additional +dependencies is needed.