Re: Problem to write quotes correct on CSV-fields when marshalling with CsvDataFormat

2015-04-20 Thread hans-christian
Hi! I tested with the suggested change and now I have qoutes at all fields, which solves my issue. Thanks! yogu13 wrote Thank you for the test case... I am assuming you are using camel-csv component here In that case couple of things i noticed would require a change:- 1. Use

Re: Problem to write quotes correct on CSV-fields when marshalling with CsvDataFormat

2015-04-12 Thread yogu13
Hello ! Thank you for the test case... I am assuming you are using camel-csv component here In that case couple of things i noticed would require a change:- 1. Use org.apache.camel.dataformat.csv.CsvDataFormat (This has its own DataFormat defined as well) 2. The Dataformat would be set as below

Re: Problem to write quotes correct on CSV-fields when marshalling with CsvDataFormat

2015-04-12 Thread hans-christian
Hi, yogu13 wrote would you have any test case which can be used to reproduce it? I wrote a simple unit test for the given scenario. The expected outcome is ABC as the first csv field in the output file. I'm using Camel 2.15.0 and Java 8. import java.nio.file.Files; import java.nio.file.Paths;

Re: Problem to write quotes correct on CSV-fields when marshalling with CsvDataFormat

2015-04-09 Thread yogu13
Hello, would you have any test case which can be used to reproduce it? Regards, -Yogesh -- View this message in context: http://camel.465427.n5.nabble.com/Problem-to-write-quotes-correct-on-CSV-fields-when-marshalling-with-CsvDataFormat-tp5765477p5765522.html Sent from the Camel - Users

Problem to write quotes correct on CSV-fields when marshalling with CsvDataFormat

2015-04-08 Thread hans-christian
Hi all, I'm using CsvDataFormat to unmarshal a csv file, modify some of the fields and then marshal it back to csv again. I only wants to modify a few fields and the let the other one be untouched. Everything works fine but my problem is that I don't get the quotes on my output files as I want.