camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Bindy: using a multi-character separator for marshalling
Date Thu, 20 Nov 2014 16:08:53 GMT
Hi

No its single char based currently.

On Thu, Nov 20, 2014 at 4:20 PM, ozzy81 <ozzy81@gmail.com> wrote:
> Hello,
>
> We have a requirement to use a double pipe separator to decode a CSV from
> the customer (||). I was able to get the unmarshalling to work by using
> \\|\\| as the separator, and it works great.
>
> The problem arises while marshalling the object back into a CSV.
>
> The headers are separated by \|\| and the contents by a single pipe |
>
> e.g.
> Header 1\|\|Header2\|\|...
> prop1|prop2|...
>
> Looking at the sources, IMHO this is in the unbind method where the
> separator is converted from String to char.
>  char separator = ConverterUtils.getCharDelimiter(this.getSeparator());
>
> Is it possible to use a multi-character separator in Bindy?
>
> Thanks a lot in advance.
>
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Bindy-using-a-multi-character-separator-for-marshalling-tp5759364.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Mime
View raw message