public AttributedString (AttributedCharacterIterator text)

Constructs an AttributedString instance with the given attributed text represented by AttributedCharacterIterator.

Parameters:
text    The text for this attributed string.

Exceptions:
NullPointerException    if text is null.