You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2019/05/05 06:29:08 UTC

[camel] 01/03: Regen

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit d1a8904129b31bc3948e688658b6c14c4ccf6d55
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Sun May 5 08:23:09 2019 +0200

    Regen
---
 .../ROOT/pages/gzipdeflater-dataformat.adoc        |  9 +++++---
 .../modules/ROOT/pages/zipdeflater-dataformat.adoc | 24 +++++++---------------
 2 files changed, 13 insertions(+), 20 deletions(-)

diff --git a/docs/components/modules/ROOT/pages/gzipdeflater-dataformat.adoc b/docs/components/modules/ROOT/pages/gzipdeflater-dataformat.adoc
index ebb7c93..ac98418 100644
--- a/docs/components/modules/ROOT/pages/gzipdeflater-dataformat.adoc
+++ b/docs/components/modules/ROOT/pages/gzipdeflater-dataformat.adoc
@@ -5,7 +5,7 @@
 
 The GZip Deflater Data Format is a message compression and
 de-compression format. It uses the same deflate algorithm that is used
-in <<zip-dataformat,Zip DataFormat>>, although some additional
+in the Zip data format, although some additional
 headers are provided. This format is produced by popular `gzip`/`gunzip`
 tool. Messages marshalled using GZip compression can be unmarshalled
 using GZip decompression just prior to being consumed at the endpoint.
@@ -13,6 +13,9 @@ The compression capability is quite useful when you deal with large XML
 and Text based payloads or when you read messages previously comressed
 using `gzip` tool.
 
+NOTE: This dataformat is not for working with gzip files such as uncompressing and building gzip files.
+Instead use the zipfile dataformat.
+
 === Options
 
 // dataformat options: START
@@ -35,7 +38,7 @@ called MY_QUEUE.
 
 [source,java]
 ----
-from("direct:start").marshal().gzip().to("activemq:queue:MY_QUEUE");
+from("direct:start").marshal().gzipDeflater().to("activemq:queue:MY_QUEUE");
 ----
 
 === Unmarshal
@@ -46,7 +49,7 @@ the `UnGZippedMessageProcessor`.
 
 [source,java]
 ----
-from("activemq:queue:MY_QUEUE").unmarshal().gzip().process(new UnGZippedMessageProcessor()); 
+from("activemq:queue:MY_QUEUE").unmarshal().gzipDeflater().process(new UnGZippedMessageProcessor());
 ----
 
 === Dependencies
diff --git a/docs/components/modules/ROOT/pages/zipdeflater-dataformat.adoc b/docs/components/modules/ROOT/pages/zipdeflater-dataformat.adoc
index da8771d..7f63320 100644
--- a/docs/components/modules/ROOT/pages/zipdeflater-dataformat.adoc
+++ b/docs/components/modules/ROOT/pages/zipdeflater-dataformat.adoc
@@ -3,10 +3,8 @@
 
 *Available as of Camel version 2.12*
 
-*Available as of Camel version 2.12*
-
 
-The Zip deflater Data Format is a message compression and
+The Zip Deflater Data Format is a message compression and
 de-compression format. Messages marshalled using Zip compression can be
 unmarshalled using Zip decompression just prior to being consumed at the
 endpoint. The compression capability is quite useful when you deal with
@@ -14,11 +12,8 @@ large XML and Text based payloads. It facilitates more optimal use of
 network bandwidth while incurring a small cost in order to compress and
 decompress payloads at the endpoint.
 
-INFO:*About using with Files*
-The Zip data format, does not (yet) have special support for files.
-Which means that when using big files, the entire file content is loaded
-into memory. This is subject to change in the future, to allow a streaming based
-solution to have a low memory footprint.
+NOTE: This dataformat is not for working with zip files such as uncompressing and building zip files.
+Instead use the zipfile dataformat.
 
 === Options
 
@@ -43,7 +38,7 @@ it an ActiveMQ queue called MY_QUEUE.
 
 [source,java]
 ----
-from("direct:start").marshal().zip(Deflater.BEST_COMPRESSION).to("activemq:queue:MY_QUEUE");
+from("direct:start").marshal().zipDeflater(Deflater.BEST_COMPRESSION).to("activemq:queue:MY_QUEUE");
 ----
 
 Alternatively if you would like to use the default setting you could
@@ -51,7 +46,7 @@ send it as
 
 [source,java]
 ----
-from("direct:start").marshal().zip().to("activemq:queue:MY_QUEUE");
+from("direct:start").marshal().zipDeflater().to("activemq:queue:MY_QUEUE");
 ----
 
 === Unmarshal
@@ -64,10 +59,5 @@ unmarshalling to avoid errors.
 
 [source,java]
 ----
-from("activemq:queue:MY_QUEUE").unmarshal().zip().process(new UnZippedMessageProcessor()); 
-----
-
-=== Dependencies
-
-This data format is provided in *camel-core* so no additional
-dependencies are needed.
\ No newline at end of file
+from("activemq:queue:MY_QUEUE").unmarshal().zipDeflater().process(new UnZippedMessageProcessor()); 
+----
\ No newline at end of file