Zip has been created by willem jiang (Nov 30, 2008).

Content:

Zip

Zip is a Data Format which uses the ZLIB compression library to marshal (Compress) and unmarshal (UnCompress) bytes.
The benefits of having this feature are the following:

  • ability to reduce the size of messages are they are sent in a flow to different remote destinations,
  • ability to decompress messages just prior to being consumed at the endpoint.
from("direct:start").marshal().zip(Deflater.BEST_COMPRESSION).process(new ZippedMessageProcessor());

   from("direct:start").marshal().zip().unmarshal().zip().process(new UnZippedMessageProcessor());

Reply via email to