camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prasad bezavada <prasadbezav...@gmail.com>
Subject How to use a string as delimiter in Camel ?
Date Wed, 09 Sep 2015 11:21:35 GMT
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?

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