public AttributedString (String text)

Constructs an AttributedString instance with the given text.

Parameters:
text    The text for this attributed string.

Exceptions:
NullPointerException    if text is null.