camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexey-s <alex...@mail.ru>
Subject Re: zip file best practices
Date Fri, 24 Jan 2014 21:00:52 GMT
I never used to separate files in zip archive.
I use a component splitter to read nested XML files. 

Example use in spring DSL:
http://stackoverflow.com/questions/20294005/using-zipsplitter-in-apache-camel-spring-dsl

Copy/paste and add comments

<bean id="zipSplitter"
class="org.apache.camel.dataformat.zipfile.ZipSplitter" />
...
<split streaming="true" parallelProcessing="true">
    <ref>zipSplitter</ref> 
    &lt;!-- Message body is ZipInputStreamWrapper.class extends
BufferedInputStream --&gt;
    &lt;!-- Header CamelFileName = include_file_name --&gt;
    &lt;!-- Header zipFileName = include_file_name --&gt;
    <convertBodyTo type="java.lang.String" />
    <to uri="file:foo" />
</split>




Aleksey



--
View this message in context: http://camel.465427.n5.nabble.com/zip-file-best-practices-tp5713437p5746463.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message