Package org.springframework.batch.item.file
@NonNullApi
package org.springframework.batch.item.file
Infrastructure implementations of io file concerns.
-
ClassDescriptionA factory strategy for custom extensions of
BufferedReaderallowing customisation of the standard behaviour of thejava.iovariety.Callback interface for writing a footer to a file.Callback interface for writing a header to a file.RestartableItemReaderthat reads lines from inputFlatFileItemReader.setResource(Resource).This class is an item writer that writes data to a file or stream.Exception thrown when errors are encountered parsing flat files.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.Reads items from multiple resources sequentially - resource list is given byMultiResourceItemReader.setResources(Resource[]), the actual reading is delegated toMultiResourceItemReader.setDelegate(ResourceAwareItemReaderItemStream).Wraps aResourceAwareItemWriterItemStreamand creates a new output resource when the count of items written in current resource exceedsMultiResourceItemWriter.setItemCountLimitPerResource(int).Exception thrown when errors are encountered with the underlying resource.ItemReaderwhich producesResourceinstances from an array.Strategy interface for translating resource index into unique filename suffix.ABufferedReaderFactoryuseful for reading simple binary (or text) files with no line endings, such as those produced by mainframe copy books.Trivial implementation ofResourceSuffixCreatorthat uses the index itself as suffix, separated by dot.