Interface FieldSetFactory

  • All Known Implementing Classes:
    DefaultFieldSetFactory

    public interface FieldSetFactory
    Factory interface for creating FieldSet instances.
    Author:
    Dave Syer
    • 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 values
        names - 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)