Class ArrayFieldSetMapper
- java.lang.Object
- org.springframework.batch.item.file.mapping.ArrayFieldSetMapper
- All Implemented Interfaces:
FieldSetMapper<java.lang.String[]>
public class ArrayFieldSetMapper extends java.lang.Object implements FieldSetMapper<java.lang.String[]>
A basic array mapper, returning the values backing a fieldset. Useful for reading the Strings resulting from the line tokenizer without having to deal with aFieldSet
object.- Author:
- Costin Leau
Constructor Summary
Constructors Constructor Description ArrayFieldSetMapper()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]
mapFieldSet(FieldSet fieldSet)
Method used to map data obtained from aFieldSet
into an object.
Method Detail
mapFieldSet
public java.lang.String[] mapFieldSet(FieldSet fieldSet) throws org.springframework.validation.BindException
Description copied from interface:FieldSetMapper
Method used to map data obtained from aFieldSet
into an object.- Specified by:
mapFieldSet
in interfaceFieldSetMapper<java.lang.String[]>
- Parameters:
fieldSet
- theFieldSet
to map- Returns:
- the populated object
- Throws:
org.springframework.validation.BindException
- if there is a problem with the binding