Newer
Older
package fr.cines.pacit.transfer.impl;
import java.io.IOException;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.dataformat.zipfile.ZipSplitter;
public class TransferCamelImpl extends RouteBuilder {
String url ;
String localPath ;
public void configure() throws IOException {
from("direct:start")
.to(url)
// on dezippe le fichier
.split(new ZipSplitter()).streaming()
.process(new UnzipEntryProcessor())
.to(localPath).end();