Jan 11th, 2011, 06:43 AM
Following is the problem statement:
I need to write to a flat file , But the instead of writing all the information in plain text , I want to encode few pf the info in EBCDEIC format.
i.e. Lets say i write user info like Name, number, address,pincode, phone numebr to flat file. I want name to be written ad plain text, number as EBCDEIC, Addtress as EBCDEIC, pincode as plain text etc. And i have one model object as user.
Please suggest the way to do this.
Jan 14th, 2011, 02:49 AM
Sounds like you need to write a custom LineAggregator and plug it into the writer? There's no support out of the box for EBCDIC (contributions welcome), but your requirement is unusual enough to require a custom aggregator anyway.