Package org.springframework.batch.item.file.mapping

# Class ArrayFieldSetMapper

java.lang.Object
org.springframework.batch.item.file.mapping.ArrayFieldSetMapper

All Implemented Interfaces:
  `FieldSetMapper<String[]>`

public class ArrayFieldSetMapper extends Object implements FieldSetMapper<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 a `FieldSet` object.

Author:
  Costin Leau

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ArrayFieldSetMapper()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String[]`
  `mapFieldSet(FieldSet fieldSet)`
  Method used to map data obtained from a `FieldSet` into an object.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ArrayFieldSetMapper

    public ArrayFieldSetMapper()

- ## Method Details

  - ### mapFieldSet

    public String[] mapFieldSet(FieldSet fieldSet) throws org.springframework.validation.BindException
    Description copied from interface: `FieldSetMapper`
    Method used to map data obtained from a `FieldSet` into an object.
    Specified by:
      `mapFieldSet` in interface `FieldSetMapper<String[]>`
    Parameters:
      `fieldSet` - the `FieldSet` to map
    Returns:
      the populated object
    Throws:
      `org.springframework.validation.BindException` - if there is a problem with the binding