Creates a
FieldPosition
object for the given field.
The field is identified by an attribute constant from one of the
Field
subclasses as well as an integer field ID
defined by the
Format
subclasses.
Format
subclasses that are aware of
Field
should give precedence
to
attribute
and ignore
fieldID
if
attribute
is not null. However, older
Format
subclasses may not be aware of
Field
and rely on
fieldID
. If the field has no corresponding integer
constant,
fieldID
should be -1.
Parameters:
-
attribute - Format.Field constant identifying a field
-
fieldID - integer constantce identifying a field
Since:
1.4