camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willem Jiang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-6139) Split the content of a Zip File
Date Wed, 13 Mar 2013 07:16:27 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-6139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13600906#comment-13600906
] 

Willem Jiang commented on CAMEL-6139:
-------------------------------------

Applied the patch into trunk with thanks ot Gardella.

As the ZipDataFormat is not using ZipInputStream, and we still need to setup the expression
on the splite DSL, I just changed the ZipSplitter to implement the interface of Expression.


The test route is changed to
{code}
from("file...").split((new ZipSplitter())
 .streaming().convertBodyTo(String.class).to("mock:processZipEntry")
{code}

I also updated the unit test to verify the message body at the same time.  

                
> Split the content of a Zip File
> -------------------------------
>
>                 Key: CAMEL-6139
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6139
>             Project: Camel
>          Issue Type: New Feature
>    Affects Versions: 2.10.0, 2.10.2, 2.10.3, 2.10.4
>         Environment: All
>            Reporter: Gardella Juan Pablo
>            Assignee: Willem Jiang
>            Priority: Minor
>         Attachments: camel-zipsplitter.zip
>
>
> Allow split the content of a Zip in a stream way. Each item is an InputStream.
> Related thread: http://camel.465427.n5.nabble.com/zip-file-best-practices-td5713437.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message