From commits-return-71954-apmail-camel-commits-archive=camel.apache.org@camel.apache.org Fri May 3 05:21:08 2019 Return-Path: X-Original-To: apmail-camel-commits-archive@www.apache.org Delivered-To: apmail-camel-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by minotaur.apache.org (Postfix) with SMTP id B052319598 for ; Fri, 3 May 2019 05:21:07 +0000 (UTC) Received: (qmail 87951 invoked by uid 500); 3 May 2019 05:21:07 -0000 Delivered-To: apmail-camel-commits-archive@camel.apache.org Received: (qmail 87923 invoked by uid 500); 3 May 2019 05:21:07 -0000 Mailing-List: contact commits-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list commits@camel.apache.org Received: (qmail 87914 invoked by uid 99); 3 May 2019 05:21:06 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 May 2019 05:21:06 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id C7445871E3; Fri, 3 May 2019 05:21:06 +0000 (UTC) Date: Fri, 03 May 2019 05:21:06 +0000 To: "commits@camel.apache.org" Subject: [camel] branch master updated: CAMEL-13474: Move dataformats out of camel-core. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <155686086642.3752.1689018073928798193@gitbox.apache.org> From: davsclaus@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: camel X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 23622f2d9dd77a6260dc59e3c0bbd56fd09ed506 X-Git-Newrev: dc63bbbc960455a5c93e41feba22ffe2aff893ca X-Git-Rev: dc63bbbc960455a5c93e41feba22ffe2aff893ca X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated 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 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 <>, 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