Results 1 to 2 of 2

Thread: Writing single line file using FlatFileItemWriter

  1. #1
    Join Date
    Apr 2008
    Posts
    2

    Default Writing single line file using FlatFileItemWriter

    Hello there,
    How can I produce a single line file using spring batch.
    requirement:
    I have 10 domain objects(UserData for instance) that have to be written to a flat file. Each object should be appended to the existing line.
    I did n't find a possibility to tell the FlatFileItemWriter not to use the line separator property
    which is retrieved as private static final String LINE_SEPARATOR = System.getProperty("line.separator")

    actual output by the writer :
    userdata1
    userdata2
    userdata3
    expected output : userdata1userdata2userdata3
    Any help is appreciated.
    Arun

  2. #2
    Join Date
    Dec 2006
    Posts
    1,061

    Default

    The answer to this question would pretty much be the same as it is for this one:

    http://forum.springframework.org/showthread.php?t=56261

    Feel free to create a JIRA issue requesting the feature though.

Posting Permissions

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