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
BufferedReader
allowing customisation of the standard behaviour of thejava.io
variety.Callback interface for writing a footer to a file.Callback interface for writing a header to a file.RestartableItemReader
that 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 aResourceAwareItemWriterItemStream
and 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.ItemReader
which producesResource
instances from an array.Strategy interface for translating resource index into unique filename suffix.ABufferedReaderFactory
useful for reading simple binary (or text) files with no line endings, such as those produced by mainframe copy books.Trivial implementation ofResourceSuffixCreator
that uses the index itself as suffix, separated by dot.