Results 1 to 2 of 2

Thread: Using formatters

  1. #1
    Join Date
    Dec 2010
    Posts
    13

    Default Using formatters

    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.

  2. #2
    Join Date
    Jun 2005
    Posts
    4,232

    Default

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •