# Package org.springframework.batch.item.file

@NonNullApi package org.springframework.batch.item.file

Infrastructure implementations of io file concerns.

- Related Packages
  Package
  Description
  org.springframework.batch.item
  Infrastructure interfaces and primary dependencies for item concerns.
  org.springframework.batch.item.file.builder
  Builders for file item readers and writers.
  org.springframework.batch.item.file.mapping
  Infrastructure implementations of io file support mapping concerns.
  org.springframework.batch.item.file.separator
  Infrastructure implementations of io file support separator concerns.
  org.springframework.batch.item.file.transform
  Infrastructure implementations of io file support transform concerns.
- Class
  Description
  BufferedReaderFactory
  A factory strategy for custom extensions of `BufferedReader` allowing customisation of the standard behaviour of the `java.io` variety.
  DefaultBufferedReaderFactory
  FlatFileFooterCallback
  Callback interface for writing a footer to a file.
  FlatFileHeaderCallback
  Callback interface for writing a header to a file.
  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.
  FlatFileParseException
  Exception thrown when errors are encountered parsing flat files.
  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.
  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)`.
  NonTransientFlatFileException
  Exception thrown when errors are encountered with the underlying resource.
  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`.
  ResourcesItemReader
  `ItemReader` which produces `Resource` instances from an array.
  ResourceSuffixCreator
  Strategy interface for translating resource index into unique filename suffix.
  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.