camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From marcelk <marcel.koop...@gmail.com>
Subject Re: Bindy csv and generateHeaderColumns doesnt work with tabs
Date Fri, 11 Nov 2011 20:34:58 GMT
Hi Claus,

I dont have much time at the moment but I created a JUnit test and a patch.
I'll try to add things the right way later.

The patch I have is:
Index: src/main/java/org/apache/camel/dataformat/bindy/BindyCsvFactory.java
===================================================================
--- src/main/java/org/apache/camel/dataformat/bindy/BindyCsvFactory.java       
(revision 1201023)
+++ src/main/java/org/apache/camel/dataformat/bindy/BindyCsvFactory.java       
(working copy)
@@ -470,7 +470,8 @@

         Map<Integer, DataField> dataFieldsSorted = new TreeMap<Integer,
DataField>(dataFields);
         Iterator<Integer> it = dataFieldsSorted.keySet().iterator();
-
+        
+        char separator = Converter.getCharDelimitor(this.getSeparator());
         StringBuilder builderHeader = new StringBuilder();

         while (it.hasNext()) {


--
View this message in context: http://camel.465427.n5.nabble.com/Bindy-csv-and-generateHeaderColumns-doesnt-work-with-tabs-tp4982555p4985495.html
Sent from the Camel Development mailing list archive at Nabble.com.

Mime
View raw message