T
- the type of the parent FlatFileItemWriterBuilder
public static class FlatFileItemWriterBuilder.FormattedBuilder<T>
extends java.lang.Object
FormatterLineAggregator
.Modifier | Constructor and Description |
---|---|
protected |
FormattedBuilder(FlatFileItemWriterBuilder<T> parent) |
Modifier and Type | Method and Description |
---|---|
FormatterLineAggregator<T> |
build() |
FlatFileItemWriterBuilder<T> |
fieldExtractor(FieldExtractor<T> fieldExtractor)
Set the
FieldExtractor to use to extract fields from each item. |
FlatFileItemWriterBuilder.FormattedBuilder<T> |
format(java.lang.String format)
Set the format string used to aggregate items
|
FlatFileItemWriterBuilder.FormattedBuilder<T> |
locale(java.util.Locale locale)
Set the locale.
|
FlatFileItemWriterBuilder.FormattedBuilder<T> |
maximumLength(int maximumLength)
Set the maximum length of the formatted string.
|
FlatFileItemWriterBuilder.FormattedBuilder<T> |
minimumLength(int minimumLength)
Set the minimum length of the formatted string.
|
FlatFileItemWriterBuilder<T> |
names(java.lang.String... names)
Names of each of the fields within the fields that are returned in the order
they occur within the formatted file.
|
protected FormattedBuilder(FlatFileItemWriterBuilder<T> parent)
public FlatFileItemWriterBuilder.FormattedBuilder<T> format(java.lang.String format)
format
- used to aggregate itemspublic FlatFileItemWriterBuilder.FormattedBuilder<T> locale(java.util.Locale locale)
locale
- to usepublic FlatFileItemWriterBuilder.FormattedBuilder<T> minimumLength(int minimumLength)
minimumLength
- of the formatted stringpublic FlatFileItemWriterBuilder.FormattedBuilder<T> maximumLength(int maximumLength)
maximumLength
- of the formatted stringpublic FlatFileItemWriterBuilder<T> fieldExtractor(FieldExtractor<T> fieldExtractor)
FieldExtractor
to use to extract fields from each item.fieldExtractor
- to use to extract fields from each itempublic FlatFileItemWriterBuilder<T> names(java.lang.String... names)
BeanWrapperFieldExtractor
only if no explicit field extractor
is set via fieldExtractor(FieldExtractor)
.names
- names of each fieldFlatFileItemWriterBuilder
BeanWrapperFieldExtractor.setNames(String[])
public FormatterLineAggregator<T> build()