Java Reference
In-Depth Information
Table 9-1. FlatFileItemWriter Cconfiguration Options
Option
Type
Default
Description
UTF-8
encoding
String
Character encoding for the file.
footerCallback
FlatFileFooterCall
back
null
Executed after the last item of
a file has been written.
headerCallback
FlatFileHeaderCall
back
null
Executed before the first item
of a file has been written.
null (required)
lineAggregator
LineAggregator
Used to convert an individual
item to a String for output.
lineSeparator
String
System's
Generated file's newline
line.separator
character.
null (required)
File or stream to be written to.
resource
Resource
saveState
boolean
true
Determines if the state of the
writer should be stored in the
ExecutionContext as
processing occurs.
shouldDeleteIfEmpty boolean
false
If true and no records are
written (not including
header/footer records), the file
is deleted on the close of the
reader.
appendAllowed
boolean
false
If true and the file to be
written to already exists, the
output is appended to it
instead of replacing the file. If
true , shouldDeleteIfExists is
automatically set to false .
shouldDeleteIfExists boolean
true
If true and the file to be
written to exists prior to the
run of the job, the file is
deleted and a new file is
created.
transactional
boolean
true
If true and a transaction is
currently active, the writing of
the data to the file is delayed
 
Search WWH ::




Custom Search