org.springframework.batch.item.file.mapping

## 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 a `FieldSet` object.
  Author:
    Costin Leau

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ArrayFieldSetMapper()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.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 Detail

    - #### ArrayFieldSetMapper

          public ArrayFieldSetMapper()

  - ### 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 a `FieldSet` into an object.
      Specified by:
        `mapFieldSet` in interface `FieldSetMapper<java.lang.String[]>`
      Parameters:
        `fieldSet` - the `FieldSet` to map
      Returns:
        the populated object
      Throws:
        `org.springframework.validation.BindException` - if there is a problem with the binding