public class AggregateItemReader<T> extends Object implements ItemReader<List<T>>
ItemReaderthat delivers a list as its item, storing up objects from the injected
ItemReaderuntil they are ready to be packed out as a collection. This class must be used as a wrapper for a custom
ItemReaderthat can identify the record boundaries. The custom reader should mark the beginning and end of records by returning an
AggregateItemwhich responds true to its query methods
ItemReaderis also thread safe.
|Constructor and Description|
|Modifier and Type||Method and Description|
Get the next list of records.
ParseException- if there is a problem parsing the current record (but the next one may still be valid)
NonTransientResourceException- if there is a fatal exception in the underlying resource. After throwing this exception implementations should endeavour to return null from subsequent calls to read.
UnexpectedInputException- if there is an uncategorised problem with the input data. Assume potentially transient, so subsequent calls to read might succeed.
Copyright © 2014 Pivotal. All rights reserved.