camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [camel] branch master updated: CAMEL-13474: Move dataformats out of camel-core.
Date Fri, 03 May 2019 05:21:06 GMT
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


The following commit(s) were added to refs/heads/master by this push:
     new dc63bbb  CAMEL-13474: Move dataformats out of camel-core.
dc63bbb is described below

commit dc63bbbc960455a5c93e41feba22ffe2aff893ca
Author: Claus Ibsen <claus.ibsen@gmail.com>
AuthorDate: Fri May 3 07:20:55 2019 +0200

    CAMEL-13474: Move dataformats out of camel-core.
---
 .../src/main/docs/gzipdeflater-dataformat.adoc     |  9 +++++---
 .../src/main/docs/zipdeflater-dataformat.adoc      | 24 +++++++---------------
 2 files changed, 13 insertions(+), 20 deletions(-)

diff --git a/components/camel-zip-deflater/src/main/docs/gzipdeflater-dataformat.adoc b/components/camel-zip-deflater/src/main/docs/gzipdeflater-dataformat.adoc
index ebb7c93..ac98418 100644
--- a/components/camel-zip-deflater/src/main/docs/gzipdeflater-dataformat.adoc
+++ b/components/camel-zip-deflater/src/main/docs/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/components/camel-zip-deflater/src/main/docs/zipdeflater-dataformat.adoc b/components/camel-zip-deflater/src/main/docs/zipdeflater-dataformat.adoc
index da8771d..7f63320 100644
--- a/components/camel-zip-deflater/src/main/docs/zipdeflater-dataformat.adoc
+++ b/components/camel-zip-deflater/src/main/docs/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


Mime
View raw message