# Package org.springframework.batch.item

@NonNullApi package org.springframework.batch.item

Infrastructure interfaces and primary dependencies for item concerns.

- Related Packages
  Package
  Description
  org.springframework.batch
  Infrastructure implementations of .
  org.springframework.batch.item.adapter
  Adapters for Plain Old Java Objects.
  org.springframework.batch.item.amqp
  AMQP related batch components.
  org.springframework.batch.item.avro
  org.springframework.batch.item.data
  Spring Data related readers and writers.
  org.springframework.batch.item.database
  Infrastructure implementations of database based item readers and writers.
  org.springframework.batch.item.file
  Infrastructure implementations of io file concerns.
  org.springframework.batch.item.function
  Adapters for `java.util.function` components.
  org.springframework.batch.item.jms
  JMS based reader/writer and related components.
  org.springframework.batch.item.json
  Infrastructure implementations of JSON input and output.
  org.springframework.batch.item.kafka
  Apache Kafka related readers and writers
  org.springframework.batch.item.ldif
  This package contains the classes required for using the LdifParser in Spring LDAP.
  org.springframework.batch.item.mail
  Java Mail based components.
  org.springframework.batch.item.support
  Internal support package
  org.springframework.batch.item.util
  Infrastructure utility classes.
  org.springframework.batch.item.validator
  Infrastructure implementations of item validator concerns.
  org.springframework.batch.item.xml
  Infrastructure implementations of xml input and output.
- Class
  Description
  ExecutionContext
  Object representing a context for an `ItemStream`.
  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.
  ItemReaderException
  A base exception class that all exceptions thrown from an `ItemReader` extend.
  ItemStream
  Marker interface defining a contract for periodically storing state and restoring from that state should an error occur.
  ItemStreamException
  Exception representing any errors encountered while processing a stream.
  ItemStreamReader<T>
  Convenience interface that combines `ItemStream` and `ItemReader` .
  ItemStreamSupport
  Empty method implementation of `ItemStream`.
  ItemStreamWriter<T>
  Convenience interface that combines `ItemStream` and `ItemWriter` .
  ItemWriter<T>
  Basic interface for generic output operations.
  ItemWriterException
  A base exception class that all exceptions thrown from an `ItemWriter` extend.
  KeyValueItemWriter<K,V>
  A base class to implement any `ItemWriter` that writes to a key value store using a `Converter` to derive a key from an item
  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.
  PeekableItemReader<T>
  A specialisation of `ItemReader` that allows the user to look ahead into the stream of items.
  ReaderNotOpenException
  Exception indicating that an `ItemReader` needed to be opened before read.
  ResourceAware
  Marker interface indicating that an item should have the Spring `Resource` in which it was read from, set on it.
  SpELItemKeyMapper<K,V>
  An implementation of `Converter` that uses SpEL to map a Value to a key
  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 an `ItemWriter` needed to be opened before being written to.