Is it possible to use and chain multiple ItemReader
s in spring-batch
?
I have a large file that contains several XML records.
I now want to use the FlatFileItemReader
to read the lines and SeparationPolicy
to detect start and end of a xml record.
Then I'd like to use StaxEventItemReader
to convert the xml to java classes.
So is it possible to chain both readers?