@NonNullApi
程序包 org.springframework.batch.item.support
Internal support package
类概要 类 说明 AbstractFileItemWriter<T> Base class for item writers that write data to a file or stream.AbstractItemCountingItemStreamItemReader<T> Abstract superclass forItemReaders that supports restart by storing item count in theExecutionContext(therefore requires item ordering to be preserved between runs).AbstractItemStreamItemReader<T> Base class forItemReaderimplementations.AbstractItemStreamItemWriter<T> Base class forItemWriterimplementations.ClassifierCompositeItemProcessor<I,O> Calls one of a collection of ItemProcessors, based on a router pattern implemented through the providedClassifier.ClassifierCompositeItemWriter<T> Calls one of a collection of ItemWriters for each item, based on a router pattern implemented through the providedClassifier.CompositeItemProcessor<I,O> CompositeItemProcessorthat passes the item through a sequence of injectedItemTransformers (return value of previous transformation is the entry value of the next).
Note the user is responsible for injecting a chain ofItemProcessors that conforms to declared input and output types.CompositeItemStream SimpleItemStreamthat delegates to a list of other streams.CompositeItemWriter<T> Calls a collection ofItemWriters in fixed-order sequence.
The implementation is thread-safe if all delegates are thread-safe.IteratorItemReader<T> ListItemReader<T> AnItemReaderthat pulls data from a list.ListItemWriter<T> PassThroughItemProcessor<T> SimpleItemProcessorthat does nothing - simply passes its argument through to the caller.ScriptItemProcessor<I,O> ItemProcessorimplementation that passes the current item to process to the provided script.SingleItemPeekableItemReader<T> APeekableItemReaderthat allows the user to peek one item ahead.SynchronizedItemStreamReader<T> This is a simple ItemStreamReader decorator with a synchronized ItemReader.read() method - which makes a non-thread-safe ItemReader thread-safe.