Interface FlatFileItemWriterBuilder.DelimitedSpec<T>
- Type Parameters:
T- the type of object to aggregate
- Enclosing class:
FlatFileItemWriterBuilder<T>
public static interface FlatFileItemWriterBuilder.DelimitedSpec<T>
Specification for configuring a delimited line aggregator.
- Since:
- 6.0
- Author:
- Michael Minella, Glenn Renfro, Mahmoud Ben Hassine, Drummond Dawson, Stefano Cordio, Daeho Kwon
-
Method Summary
Modifier and TypeMethodDescriptionDefine the delimiter for the file.fieldExtractor(FieldExtractor<T> fieldExtractor) Set theFieldExtractorto use to extract fields from each item.Names of each of the fields within the fields that are returned in the order they occur within the delimited file.quoteCharacter(String quoteCharacter) Define the quote character for each delimited field.sourceType(Class<T> sourceType) Specify the type of items from which fields will be extracted.
-
Method Details
-
delimiter
Define the delimiter for the file.- Parameters:
delimiter- String used as a delimiter between fields.- Returns:
- The instance of the specification for chaining.
- See Also:
-
quoteCharacter
Define the quote character for each delimited field. Default is empty string.- Parameters:
quoteCharacter- String used as a quote for the aggregate.- Returns:
- The instance of the specification for chaining.
- See Also:
-
names
Names of each of the fields within the fields that are returned in the order they occur within the delimited file. These names will be used to create aBeanWrapperFieldExtractoronly if no explicit field extractor is set viaFlatFileItemWriterBuilder.DelimitedBuilder.fieldExtractor(FieldExtractor).- Parameters:
names- names of each field- Returns:
- The instance of the specification for chaining.
- See Also:
-
fieldExtractor
Set theFieldExtractorto use to extract fields from each item.- Parameters:
fieldExtractor- to use to extract fields from each item- Returns:
- The instance of the specification for chaining.
-
sourceType
Specify the type of items from which fields will be extracted. This is used to configure the rightFieldExtractorbased on the given type (ie a record or a regular class).- Parameters:
sourceType- type of items from which fields will be extracted- Returns:
- The current specification of the builder.
-