camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Müller <christian.muel...@gmail.com>
Subject Re: Bindy - CsvRecord( separator = "|" )
Date Tue, 08 Jun 2010 21:49:58 GMT
Hello D.,

the short answer is, use the annotation '@CsvRecord(separator = "\\|")'.
Camel-Bindy internally use java.util.String.split(String regexp, int limit)
which means, that this separator is interpreted as a regular expression.
I updated the wiki page to reflect this:
https://cwiki.apache.org/confluence/display/CAMEL/Bindy

Cheers,
Christian

On Tue, Jun 8, 2010 at 8:21 PM, DSailor <mromaniu@yahoo.com> wrote:

>
> Our project is considering using Camel and most our feeds are currently
> pipe
> separated files.
> While testing Camel-bindy I managed to use different separators,
> nevertheless, when using the Unix pipe separator, Bindy comes with an
> exception and is unable to parse the record.
> Is anyone aware of such limitation ? Even though I am quite keen on using
> Camel, this would quite a serious limitation on our context.
> --
> View this message in context:
> http://old.nabble.com/Bindy---CsvRecord%28-separator-%3D-%22%7C%22-%29-tp28821374p28821374.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message