Interface FlatFieldFormat

    • Method Detail

      • getPosition

        int getPosition()
        Returns the field position.

        In a delimited/CSV stream format, the position is the index of the field in the record starting at 0. For example, the position of field2 in the following comma delimited record is 1:

        field1,field2,field3

        In a fixed length stream format, the position is the index of the first character of the field in the record, also starting at 0. For example, the position of field2 in the following record is 6:

        field1field2field3

        Returns:
        the field position