Uses of Class
Builders for file item readers and writers.
Modifier and TypeMethodDescriptionAdd a string to the list of Strings that indicate commented lines.FlatFileItemReaderBuilder.
(org.springframework.beans.factory.BeanFactory beanFactory)Configures the
BeanFactoryused to create the beans that are returned as items.FlatFileItemReaderBuilder.
(boolean beanMapperStrict)If set to true, mapping will fail if the
FieldSetcontains fields that cannot be mapped to the bean.Configure a custom
BufferedReaderFactoryfor the reader.Set an array of Strings that indicate lines that are comments (and therefore skipped by the reader).FlatFileItemReaderBuilder.
(int currentItemCount)Index for the current item.Register custom type converters for beans being mapped.FlatFileItemReaderBuilder.
(int distanceLimit)Configures the maximum tolerance between the actual spelling of a field's name and the property's name.Configure the encoding used by the reader to read the input source.A
FieldSetMapperimplementation to be used.A
LineMapperimplementation to be used.FlatFileItemReaderBuilder.
(int linesToSkip)The number of lines to skip at the beginning of reading the file.A
LineTokenizerimplementation to be used.FlatFileItemReaderBuilder.
(int maxItemCount)Configure the max number of items to be read.The name used to calculate the key within the
ExecutionContext.Names of each of the fields within the fields that are returned in the order they occur within the delimited file.The names of the fields to be parsed from the file.Configures the id of a prototype scoped bean to be used as the item returned by the reader.Configure a custom
RecordSeparatorPolicyfor the reader.FlatFileItemReaderBuilder.
Resourceto be used as input.FlatFileItemReaderBuilder.
(boolean saveState)A callback to be called for each line that is skipped.FlatFileItemReaderBuilder.
(boolean strict)Configure if the reader should be in strict mode (require the input
Resourceto exist).The class that will represent the "item" to be returned from the reader.