Jun 24th, 2008, 10:31 AM
Writing single line file using FlatFileItemWriter
How can I produce a single line file using spring batch.
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 :
expected output : userdata1userdata2userdata3
Any help is appreciated.
Jun 25th, 2008, 08:49 AM
The answer to this question would pretty much be the same as it is for this one:
Feel free to create a JIRA issue requesting the feature though.