aspose file tools
The moose likes Spring and the fly likes Spring Batch - Issue in reading & writing the quoted fields Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Spring
Reply Bookmark "Spring Batch - Issue in reading & writing the quoted fields" Watch "Spring Batch - Issue in reading & writing the quoted fields" New topic
Author

Spring Batch - Issue in reading & writing the quoted fields

sen kum
Greenhorn

Joined: Mar 05, 2012
Posts: 1
Hello All,
I am novice to spring batch. I am trying to read and write a delimited file. Your help would be really appreciated.

In the csv, I will be getting two kinds of data.
1111,AAA,BBB,333
2222,CCC,"DDD,EEE",444

With the Aggregators and tokenizers, I could read and write the above lines. But, the quotes in the second line is not getting written in the output file. I am getting the output as 2222,CCC,DDD,EEE,444. I tried using the DelimitedLineAggregator. Please advise me on how to get the exact lines printed into the output file.

Thanks for your help.
Sk.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Spring Batch - Issue in reading & writing the quoted fields
 
Similar Threads
Preceding siblings
Priority Queue Ordering Question
How to split a string by the whitespace but ignoring '\n'?
Xpath Requirement help!!
help - what's the difference: axis following and axis following-sibling?