Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Spring Batch - Issue in reading & writing the quoted fields  RSS feed

 
sen kum
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!