camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Matèrne (jhm) <>
Subject AW: Best strategy for skipping lines in CSV files with bindy
Date Wed, 08 May 2013 09:43:53 GMT
> Finally I have created a processor with a BufferedReader to filter the
> lines of the file according to a regular expression, so I get the file
> as String only with the important lines. Later, I use bindy as usual.

Instead of reading the file by myself using a BufferedReader I would check
the line content inside the route, something like

        .when(simple("$body regex ..."))
            .marshal().bindy(BindyType.Csv, "")


View raw message