Interface FieldSetFactory
- All Known Implementing Classes:
DefaultFieldSetFactory
public interface FieldSetFactory
Factory interface for creatingFieldSet
instances.- Author:
- Dave Syer
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FieldSet
create(java.lang.String[] values)
Create a FieldSet with anonymous tokens.FieldSet
create(java.lang.String[] values, java.lang.String[] names)
Create a FieldSet with named tokens.
Method Detail
create
FieldSet create(java.lang.String[] values, java.lang.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 valuesnames
- the names of the tokens- Returns:
- an instance of
FieldSet
. - See Also:
DefaultFieldSet.readString(String)
create
FieldSet create(java.lang.String[] values)
Create a FieldSet with anonymous tokens. They can only be retrieved by column number.- Parameters:
values
- the token values- Returns:
- an instance of
FieldSet
. - See Also:
FieldSet.readString(int)