T
- the type of the parent FlatFileItemReaderBuilder
public static class FlatFileItemReaderBuilder.DelimitedBuilder<T>
extends java.lang.Object
DelimitedLineTokenizer
Modifier | Constructor and Description |
---|---|
protected |
DelimitedBuilder(FlatFileItemReaderBuilder<T> parent) |
Modifier and Type | Method and Description |
---|---|
FlatFileItemReaderBuilder.DelimitedBuilder<T> |
addIncludedField(int field)
Add an index to the list of fields to be included from the file
|
DelimitedLineTokenizer |
build()
Returns a
DelimitedLineTokenizer |
FlatFileItemReaderBuilder.DelimitedBuilder<T> |
delimiter(java.lang.String delimiter)
Define the delimiter for the file.
|
FlatFileItemReaderBuilder.DelimitedBuilder<T> |
fieldSetFactory(FieldSetFactory fieldSetFactory)
A factory for creating the resulting
FieldSet . |
FlatFileItemReaderBuilder.DelimitedBuilder<T> |
includedFields(java.lang.Integer[] fields)
A list of indices of the fields within a delimited file to be included
|
FlatFileItemReaderBuilder<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 delimited file.
|
FlatFileItemReaderBuilder.DelimitedBuilder<T> |
quoteCharacter(char quoteCharacter)
Define the character used to quote fields.
|
protected DelimitedBuilder(FlatFileItemReaderBuilder<T> parent)
public FlatFileItemReaderBuilder.DelimitedBuilder<T> delimiter(java.lang.String delimiter)
delimiter
- String used as a delimiter between fields.DelimitedLineTokenizer.setDelimiter(String)
public FlatFileItemReaderBuilder.DelimitedBuilder<T> quoteCharacter(char quoteCharacter)
quoteCharacter
- char used to define quoted fieldsDelimitedLineTokenizer.setQuoteCharacter(char)
public FlatFileItemReaderBuilder.DelimitedBuilder<T> includedFields(java.lang.Integer[] fields)
fields
- indices of the fieldsDelimitedLineTokenizer.setIncludedFields(int[])
public FlatFileItemReaderBuilder.DelimitedBuilder<T> addIncludedField(int field)
field
- the index to be includedDelimitedLineTokenizer.setIncludedFields(int[])
public FlatFileItemReaderBuilder.DelimitedBuilder<T> fieldSetFactory(FieldSetFactory fieldSetFactory)
FieldSet
. Defaults to
DefaultFieldSetFactory
.fieldSetFactory
- Factory for creating FieldSet
AbstractLineTokenizer.setFieldSetFactory(FieldSetFactory)
public FlatFileItemReaderBuilder<T> names(java.lang.String[] names)
names
- names of each fieldFlatFileItemReaderBuilder
AbstractLineTokenizer.setNames(String[])
public DelimitedLineTokenizer build()
DelimitedLineTokenizer
DelimitedLineTokenizer