org.springframework.batch.item.file.transform
Interface FieldSetFactory

All Known Implementing Classes:
DefaultFieldSetFactory

public interface FieldSetFactory

Factory interface for creating FieldSet instances.

Author:
Dave Syer

Method Summary
 FieldSet create(String[] values)
          Create a FieldSet with anonymous tokens.
 FieldSet create(String[] values, String[] names)
          Create a FieldSet with named tokens.
 

Method Detail

create

FieldSet create(String[] values,
                String[] names)
Create a FieldSet with named tokens. The token values can then be retrieved either by name or by column number.

Parameters:
values - the token values
names - the names of the tokens
See Also:
DefaultFieldSet.readString(String)

create

FieldSet create(String[] values)
Create a FieldSet with anonymous tokens. They can only be retrieved by column number.

Parameters:
values - the token values
See Also:
FieldSet.readString(int)


Copyright © 2013 SpringSource. All Rights Reserved.