Formats an Object producing an
AttributedCharacterIterator
. You can use the returned
AttributedCharacterIterator
to build the resulting String, as well as to determine information about the resulting String.
Each attribute key of the AttributedCharacterIterator will be of type NumberFormat.Field
, with the attribute value being the same as the attribute key.
@exception NullPointerException if obj is null.
@exception IllegalArgumentException when the Format cannot format thegiven object.
@exception ArithmeticException if rounding is needed with roundingmode being set to RoundingMode.UNNECESSARY
@param obj The object to format
@return AttributedCharacterIterator describing the formatted value.
@since 1.4