# Package org.springframework.batch.item.file

Infrastructure implementations of io file concerns.

See: Description

- Interface Summary
  Interface | Description
  --- | ---
  BufferedReaderFactory | A factory strategy for custom extensions of `BufferedReader` allowing customisation of the standard behaviour of the `java.io` variety.
  FlatFileFooterCallback | Callback interface for writing a footer to a file.
  FlatFileHeaderCallback | Callback interface for writing to a header to a file.
  LineCallbackHandler | Callback interface for handling a line from file.
  LineMapper<T> | Interface for mapping lines (strings) to domain objects typically used to map lines read from a file to domain objects on a per line basis.
  ResourceAwareItemReaderItemStream<T> | Interface for `ItemReader`s that implement `ItemStream` and read input from `Resource`.
  ResourceAwareItemWriterItemStream<T> | Interface for `ItemWriter`s that implement `ItemStream` and write output to `Resource`.
  ResourceSuffixCreator | Strategy interface for translating resource index into unique filename suffix.

- Class Summary
  Class | Description
  --- | ---
  DefaultBufferedReaderFactory |
  FlatFileItemReader<T> | Restartable `ItemReader` that reads lines from input `FlatFileItemReader.setResource(Resource)`.
  FlatFileItemWriter<T> | This class is an item writer that writes data to a file or stream.
  MultiResourceItemReader<T> | Reads items from multiple resources sequentially - resource list is given by `MultiResourceItemReader.setResources(Resource[])`, the actual reading is delegated to `MultiResourceItemReader.setDelegate(ResourceAwareItemReaderItemStream)`.
  MultiResourceItemWriter<T> | Wraps a `ResourceAwareItemWriterItemStream` and creates a new output resource when the count of items written in current resource exceeds `MultiResourceItemWriter.setItemCountLimitPerResource(int)`.
  ResourcesItemReader | `ItemReader` which produces `Resource` instances from an array.
  SimpleBinaryBufferedReaderFactory | A `BufferedReaderFactory` useful for reading simple binary (or text) files with no line endings, such as those produced by mainframe copy books.
  SimpleResourceSuffixCreator | Trivial implementation of `ResourceSuffixCreator` that uses the index itself as suffix, separated by dot.

- Exception Summary
  Exception | Description
  --- | ---
  FlatFileParseException | Exception thrown when errors are encountered parsing flat files.
  NonTransientFlatFileException | Exception thrown when errors are encountered with the underlying resource.

## Package org.springframework.batch.item.file Description

Infrastructure implementations of io file concerns.