[ Web Proxy ]
URL:
Viewing: https://docs.oracle.com/en/java/javase/24/docs/api/java.base/java/text/AttributedString.html [Back]  [Original]

AttributedString (Java SE 24 & JDK 24)
Contents 
Hide sidebar ❮❯ Show sidebar
  1. Description
  2. Constructor Summary
  3. Method Summary
  4. Constructor Details
    1. AttributedString(String)
    2. AttributedString(String, Map)
    3. AttributedString(AttributedCharacterIterator)
    4. AttributedString(AttributedCharacterIterator, int, int)
    5. AttributedString(AttributedCharacterIterator, int, int, AttributedCharacterIterator.Attribute[])
  5. Method Details
    1. addAttribute(AttributedCharacterIterator.Attribute, Object)
    2. addAttribute(AttributedCharacterIterator.Attribute, Object, int, int)
    3. addAttributes(Map, int, int)
    4. getIterator()
    5. getIterator(AttributedCharacterIterator.Attribute[])
    6. getIterator(AttributedCharacterIterator.Attribute[], int, int)

Class AttributedString

java.lang.Object
java.text.AttributedString

public class AttributedString extends Object
An AttributedString holds text and related attribute information. It may be used as the actual data storage in some cases where a text reader wants to access attributed text through the AttributedCharacterIterator interface.

An attribute is a key/value pair, identified by the key. No two attributes on a given character can have the same key.

The values for an attribute are immutable, or must not be mutated by clients or storage. They are always passed by reference, and not cloned.

Since:
1.2
See Also:


Web Proxy Viewer  |  New URL  |  Original Page