Jul 31st, 2009, 05:45 AM
Read continuously and predict errors
I am using SpringBatch2.0 and my input file is a flat file.
I am using FlatFileItemReader to read the input text file.
Can we read continuously and stop when the line is of different type.
Example: using IO package i can read a file continuously and if i encounter any desired value i can perform my logic( putting a while loop to read).
and also if i encounter any unknown characters(special characters), i should be able to read other data and skip such erroneous data.
Thanks in advance.