Uses of Class
org.springframework.batch.item.file.builder.FlatFileItemWriterBuilder
Package
Description
Builders for file item readers and writers.
-
Uses of FlatFileItemWriterBuilder in org.springframework.batch.item.file.builder
Modifier and TypeMethodDescriptionFlatFileItemWriterBuilder.append
(boolean append) If set to true and the file exists, the output will be appended to the existing file.Encoding used for output.FlatFileItemWriterBuilder.DelimitedBuilder.fieldExtractor
(FieldExtractor<T> fieldExtractor) Set theFieldExtractor
to use to extract fields from each item.FlatFileItemWriterBuilder.FormattedBuilder.fieldExtractor
(FieldExtractor<T> fieldExtractor) Set theFieldExtractor
to use to extract fields from each item.FlatFileItemWriterBuilder.footerCallback
(FlatFileFooterCallback callback) A callback for footer processingFlatFileItemWriterBuilder.forceSync
(boolean forceSync) A flag indicating that changes should be force-synced to disk on flush.FlatFileItemWriterBuilder.headerCallback
(FlatFileHeaderCallback callback) A callback for header processing.FlatFileItemWriterBuilder.lineAggregator
(LineAggregator<T> lineAggregator) Line aggregator used to build the String version of each item.FlatFileItemWriterBuilder.lineSeparator
(String lineSeparator) String used to separate lines in output.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.Names of each of the fields within the fields that are returned in the order they occur within the formatted file.FlatFileItemWriterBuilder.resource
(org.springframework.core.io.WritableResource resource) TheWritableResource
to be used as output.FlatFileItemWriterBuilder.saveState
(boolean saveState) Configure if the state of theItemStreamSupport
should be persisted within theExecutionContext
for restart purposes.FlatFileItemWriterBuilder.shouldDeleteIfEmpty
(boolean shouldDelete) If set to true, once the step is complete, if the resource previously provided is empty, it will be deleted.FlatFileItemWriterBuilder.shouldDeleteIfExists
(boolean shouldDelete) If set to true, upon the start of the step, if the resource already exists, it will be deleted and recreated.FlatFileItemWriterBuilder.transactional
(boolean transactional) If set to true, the flushing of the buffer is delayed while a transaction is active.ModifierConstructorDescriptionprotected
DelimitedBuilder
(FlatFileItemWriterBuilder<T> parent) protected
FormattedBuilder
(FlatFileItemWriterBuilder<T> parent)