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 aFieldSetobject.- 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 aFieldSetinto an object.
Method Detail
mapFieldSet
public java.lang.String[] mapFieldSet(FieldSet fieldSet) throws org.springframework.validation.BindException
Description copied from interface:FieldSetMapperMethod used to map data obtained from aFieldSetinto an object.- Specified by:
mapFieldSetin interfaceFieldSetMapper<java.lang.String[]>- Parameters:
fieldSet- theFieldSetto map- Returns:
- the populated object
- Throws:
org.springframework.validation.BindException- if there is a problem with the binding