Java Reference
In-Depth Information
Table 7-1. FlatFileItemReader Configuration Options
Option
Type
Default
Description
Comments
String []
null
This array of strings
indicates what prefixes
will be considered line
comments and skipped
during file parsing.
Encoding
String
ISO-8859-1
The character encoding
for the file.
lineMapper
LineMapper
null (required)
This class will take each
line of a file as a String
and convert it into a
domain object (item) to
be processed.
linesToSkip
int
0
When running a job, the
FlatFileItemReader can
be configured to skip
lines at the beginning of
the file before parsing.
This number indicates
how many.
recordSeparatorPolicy
RecordSeparatorPolicy
DefaultRecordSeparator
Policy
Used to determine the
end of each record. By
default, an end of line
character indicates the
end of a record;
however, this can be
used to determine how
to handle things like
quoted strings across
lines.
Resource
Resource
null (required)
The resource to be read.
skippedLinesCallback
LineCallbackHandler
null
Callback interface called
with the line skipped.
Every line skipped will
be passed to this
callback.
Strict
boolean
false
An Exception will be
thrown if the resource is
 
 
Search WWH ::




Custom Search