@NonNullApi
Package org.springframework.batch.item.file
Infrastructure implementations of io file concerns.
Interface Summary Interface Description BufferedReaderFactory A factory strategy for custom extensions ofBufferedReaderallowing customisation of the standard behaviour of thejava.iovariety.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> RestartableItemReaderthat 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 aResourceAwareItemWriterItemStreamand creates a new output resource when the count of items written in current resource exceedsMultiResourceItemWriter.setItemCountLimitPerResource(int).ResourcesItemReader ItemReaderwhich producesResourceinstances from an array.SimpleBinaryBufferedReaderFactory ABufferedReaderFactoryuseful for reading simple binary (or text) files with no line endings, such as those produced by mainframe copy books.SimpleResourceSuffixCreator Trivial implementation ofResourceSuffixCreatorthat 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.