Unzip a file using Apache Camel UnZippedMessageProcessor

后端 未结 2 836

Trying to unzip a file using Apache Camel, I tried the example given in http://camel.apache.org/zip-file-dataformat.html but I can\'t find UnZippedMessageProcessor

2条回答
  •  爱一瞬间的悲伤
    2021-01-21 02:53

    You can also define the route like this, you can find the ZipSplitter inside of camel-zipfile.

     from("file:src/test/resources/org/apache/camel/dataformat/zipfile?consumer.delay=1000&noop=true")
      .split(new ZipSplitter())
      .streaming().convertBodyTo(String.class).to("mock:processZipEntry")
      .end()
    

提交回复
热议问题