@NonNullApi
程序包 org.springframework.batch.item
Infrastructure interfaces and primary dependencies for item concerns.
接口概要 接口 说明 ItemCountAware Marker interface indicating that an item should have the item count set on it.ItemProcessor<I,O> Interface for item transformation.ItemReader<T> Strategy interface for providing the data.ItemStream Marker interface defining a contract for periodically storing state and restoring from that state should an error occur.ItemStreamReader<T> Convenience interface that combinesItemStream
andItemReader
.ItemStreamWriter<T> Convenience interface that combinesItemStream
andItemWriter
.ItemWriter<T> Basic interface for generic output operations.PeekableItemReader<T> A specialisation ofItemReader
that allows the user to look ahead into the stream of items.ResourceAware Marker interface indicating that an item should have the SpringResource
in which it was read from, set on it.类概要 类 说明 ExecutionContext Object representing a context for anItemStream
.ItemStreamSupport Empty method implementation ofItemStream
.KeyValueItemWriter<K,V> A base class to implement anyItemWriter
that writes to a key value store using aConverter
to derive a key from an itemSpELItemKeyMapper<K,V> An implementation ofConverter
that uses SpEL to map a Value to a key异常错误概要 异常错误 说明 ItemReaderException A base exception class that all exceptions thrown from anItemReader
extend.ItemStreamException Exception representing any errors encountered while processing a stream.ItemWriterException A base exception class that all exceptions thrown from anItemWriter
extend.NonTransientResourceException Exception indicating that an error has been encountered doing I/O from a reader, and the exception should be considered fatal.ParseException Exception indicating that an error has been encountered parsing IO, typically from a file.ReaderNotOpenException Exception indicating that anItemReader
needed to be opened before read.UnexpectedInputException Used to signal an unexpected end of an input or message stream.WriteFailedException Unchecked exception indicating that an error has occurred while trying to clear a buffer on a rollback.WriterNotOpenException Exception indicating that anItemWriter
needed to be opened before being written to.