@NonNullApi
Package org.springframework.batch.item.file
Infrastructure implementations of io file concerns.
Interface Summary Interface Description BufferedReaderFactory A factory strategy for custom extensions ofBufferedReader
allowing customisation of the standard behaviour of thejava.io
variety.FlatFileFooterCallback Callback interface for writing a footer to a file.FlatFileHeaderCallback Callback interface for writing 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> ResourceAwareItemWriterItemStream<T> ResourceSuffixCreator Strategy interface for translating resource index into unique filename suffix.Class Summary Class Description DefaultBufferedReaderFactory FlatFileItemReader<T> RestartableItemReader
that reads lines from inputFlatFileItemReader.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 byMultiResourceItemReader.setResources(Resource[])
, the actual reading is delegated toMultiResourceItemReader.setDelegate(ResourceAwareItemReaderItemStream)
.MultiResourceItemWriter<T> Wraps aResourceAwareItemWriterItemStream
and creates a new output resource when the count of items written in current resource exceedsMultiResourceItemWriter.setItemCountLimitPerResource(int)
.ResourcesItemReader ItemReader
which producesResource
instances from an array.SimpleBinaryBufferedReaderFactory ABufferedReaderFactory
useful for reading simple binary (or text) files with no line endings, such as those produced by mainframe copy books.SimpleResourceSuffixCreator Trivial implementation ofResourceSuffixCreator
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.