Uses of Class
org.springframework.batch.item.file.builder.FlatFileItemReaderBuilder
Package
Description
Builders for file item readers and writers.
-
Uses of FlatFileItemReaderBuilder in org.springframework.batch.item.file.builder
Modifier and TypeMethodDescriptionFlatFileItemReaderBuilder.addComment
(String comment) Add a string to the list of Strings that indicate commented lines.FlatFileItemReaderBuilder.beanFactory
(org.springframework.beans.factory.BeanFactory beanFactory) Configures theBeanFactory
used to create the beans that are returned as items.FlatFileItemReaderBuilder.beanMapperStrict
(boolean beanMapperStrict) If set to true, mapping will fail if theFieldSet
contains fields that cannot be mapped to the bean.FlatFileItemReaderBuilder.bufferedReaderFactory
(BufferedReaderFactory factory) Configure a customBufferedReaderFactory
for the reader.Set an array of Strings that indicate lines that are comments (and therefore skipped by the reader).FlatFileItemReaderBuilder.currentItemCount
(int currentItemCount) Index for the current item.FlatFileItemReaderBuilder.customEditors
(Map<Class<?>, PropertyEditor> customEditors) Register custom type converters for beans being mapped.FlatFileItemReaderBuilder.distanceLimit
(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.FlatFileItemReaderBuilder.fieldSetMapper
(FieldSetMapper<T> mapper) AFieldSetMapper
implementation to be used.FlatFileItemReaderBuilder.lineMapper
(LineMapper<T> lineMapper) ALineMapper
implementation to be used.FlatFileItemReaderBuilder.linesToSkip
(int linesToSkip) The number of lines to skip at the beginning of reading the file.FlatFileItemReaderBuilder.lineTokenizer
(LineTokenizer tokenizer) ALineTokenizer
implementation to be used.FlatFileItemReaderBuilder.maxItemCount
(int maxItemCount) Configure the max number of items to be read.The name used to calculate the key within theExecutionContext
.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.FlatFileItemReaderBuilder.prototypeBeanName
(String prototypeBeanName) Configures the id of a prototype scoped bean to be used as the item returned by the reader.FlatFileItemReaderBuilder.recordSeparatorPolicy
(RecordSeparatorPolicy policy) Configure a customRecordSeparatorPolicy
for the reader.FlatFileItemReaderBuilder.resource
(org.springframework.core.io.Resource resource) TheResource
to be used as input.FlatFileItemReaderBuilder.saveState
(boolean saveState) Configure if the state of theItemStreamSupport
should be persisted within theExecutionContext
for restart purposes.FlatFileItemReaderBuilder.skippedLinesCallback
(LineCallbackHandler callback) A callback to be called for each line that is skipped.FlatFileItemReaderBuilder.strict
(boolean strict) Configure if the reader should be in strict mode (require the inputResource
to exist).FlatFileItemReaderBuilder.targetType
(Class<? extends T> targetType) The class that will represent the "item" to be returned from the reader.ModifierConstructorDescriptionprotected
DelimitedBuilder
(FlatFileItemReaderBuilder<T> parent) protected
FixedLengthBuilder
(FlatFileItemReaderBuilder<T> parent)