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: How to use a string as delimiter in Camel ?
Date Wed, 09 Sep 2015 12:07:23 GMT
Hi

Not with the csv data format. Maybe one of the other CSV capable can
do it.  See a list here
http://camel.apache.org/data-format.html

On Wed, Sep 9, 2015 at 1:21 PM, prasad bezavada
<prasadbezavada@gmail.com> wrote:
> Hi,
>
>   I am trying to transform a CSV file which contains some string as
> delimiter (Eg: MY_DE1 is my delimiter unlike comma ,semicolon etc).But when
> I set like below
>
> CsvDataFormat csv = new CsvDataFormat();
> csv.setDelimiter("MY_DE1");
>
> it is giving me following exception
>
>  java.lang.IllegalArgumentException: The 'delimiter' attribute must be
> exactly one character long.
>
> So my question is ,is there any way to use a string (with multiple chars)
> as delimiter in Camel?



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2nd edition:
https://www.manning.com/books/camel-in-action-second-edition

Mime
View raw message