T
- the type of the parent FlatFileItemReaderBuilder
public static class FlatFileItemReaderBuilder.FixedLengthBuilder<T>
extends java.lang.Object
FixedLengthTokenizer
Modifier | Constructor and Description |
---|---|
protected |
FixedLengthBuilder(FlatFileItemReaderBuilder<T> parent) |
Modifier and Type | Method and Description |
---|---|
FlatFileItemReaderBuilder.FixedLengthBuilder<T> |
addColumns(Range range)
Add a column range to the existing list
|
FlatFileItemReaderBuilder.FixedLengthBuilder<T> |
addColumns(Range range,
int index)
Insert a column range to the existing list
|
FixedLengthTokenizer |
build()
Returns a
FixedLengthTokenizer |
FlatFileItemReaderBuilder.FixedLengthBuilder<T> |
columns(Range[] ranges)
The column ranges for each field
|
FlatFileItemReaderBuilder.FixedLengthBuilder<T> |
fieldSetFactory(FieldSetFactory fieldSetFactory)
A factory for creating the resulting
FieldSet . |
FlatFileItemReaderBuilder<T> |
names(java.lang.String[] names)
The names of the fields to be parsed from the file.
|
FlatFileItemReaderBuilder.FixedLengthBuilder<T> |
strict(boolean strict)
Boolean indicating if the number of tokens in a line must match the number of
fields (ranges) configured.
|
protected FixedLengthBuilder(FlatFileItemReaderBuilder<T> parent)
public FlatFileItemReaderBuilder.FixedLengthBuilder<T> columns(Range[] ranges)
ranges
- column rangesFixedLengthTokenizer.setColumns(Range[])
public FlatFileItemReaderBuilder.FixedLengthBuilder<T> addColumns(Range range)
range
- a new column rangeFixedLengthTokenizer.setColumns(Range[])
public FlatFileItemReaderBuilder.FixedLengthBuilder<T> addColumns(Range range, int index)
range
- a new column rangeindex
- index to add it atFixedLengthTokenizer.setColumns(Range[])
public FlatFileItemReaderBuilder<T> names(java.lang.String[] names)
names
- names of fieldsAbstractLineTokenizer.setNames(String[])
public FlatFileItemReaderBuilder.FixedLengthBuilder<T> strict(boolean strict)
strict
- defaults to trueAbstractLineTokenizer.setStrict(boolean)
public FlatFileItemReaderBuilder.FixedLengthBuilder<T> fieldSetFactory(FieldSetFactory fieldSetFactory)
FieldSet
. Defaults to
DefaultFieldSetFactory
.fieldSetFactory
- Factory for creating FieldSet
AbstractLineTokenizer.setFieldSetFactory(FieldSetFactory)
public FixedLengthTokenizer build()
FixedLengthTokenizer
FixedLengthTokenizer