camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cmoulliard <cmoulli...@gmail.com>
Subject Why CsvDataFormat generate character '[' & ']' - CSV annotations
Date Tue, 18 Mar 2008 12:38:03 GMT

Hi,

Why the CSVDataFormat add those characters from and after a CSV line '[' ']'
? 

ex of body message displaying those characters.
[[1, bank1, 10, 20, sale], [2, bank2, 10, 5, sale], [3, bank3, 1000, 2000,
buy], ...

Remark : the file parsed using CSVDataformat is placed as a message in a
queue.

       from("file:///c:/temp/test?noop=true")
        .unmarshal().csv()
        .to("test-jms:queue:test.queue");

May I suggest you to avoid the generation of such characters because those
tags must be remove during the process to map CSV line content to a POJO !

Is it possible to have CSV annotations (like it is possible in the ETL
example with XML file) in order to map the content of a CSV line to a POJO ?

regards,

Charles
-- 
View this message in context: http://www.nabble.com/Why-CsvDataFormat-generate-character-%27-%27---%27-%27---CSV-annotations-tp16120155s22882p16120155.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Mime
View raw message