Build 1.0_r1(from source)

android.text
Class SpannedString

java.lang.Object
  extended by android.text.SpannableStringInternal
      extended by android.text.SpannedString
All Implemented Interfaces:
GetChars, Spanned, CharSequence

public final class SpannedString
extends SpannableStringInternal
implements CharSequence, GetChars, Spanned

This is the class for text whose content and markup are immutable. For mutable markup, see SpannableString; for mutable text, see SpannableStringBuilder.


Field Summary
 
Fields inherited from class android.text.SpannableStringInternal
EMPTY
 
Fields inherited from interface android.text.Spanned
SPAN_EXCLUSIVE_EXCLUSIVE, SPAN_EXCLUSIVE_INCLUSIVE, SPAN_INCLUSIVE_EXCLUSIVE, SPAN_INCLUSIVE_INCLUSIVE, SPAN_MARK_MARK, SPAN_MARK_POINT, SPAN_PARAGRAPH, SPAN_POINT_MARK, SPAN_POINT_POINT, SPAN_PRIORITY, SPAN_PRIORITY_SHIFT, SPAN_USER, SPAN_USER_SHIFT
 
Constructor Summary
SpannedString(CharSequence source)
           
 
Method Summary
 CharSequence subSequence(int start, int end)
          Returns a CharSequence from the start index (inclusive) to the end index (exclusive) of this sequence.
static SpannedString valueOf(CharSequence source)
           
 
Methods inherited from class android.text.SpannableStringInternal
charAt, getChars, getSpanEnd, getSpanFlags, getSpans, getSpanStart, length, nextSpanTransition, removeSpan, setSpan, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface android.text.GetChars
getChars
 
Methods inherited from interface android.text.Spanned
getSpanEnd, getSpanFlags, getSpans, getSpanStart, nextSpanTransition
 
Methods inherited from interface java.lang.CharSequence
charAt, length, toString
 

Constructor Detail

SpannedString

public SpannedString(CharSequence source)
Method Detail

subSequence

public CharSequence subSequence(int start,
                                int end)
Description copied from interface: CharSequence
Returns a CharSequence from the start index (inclusive) to the end index (exclusive) of this sequence.

Specified by:
subSequence in interface CharSequence
Parameters:
start - The starting offset of the sub-sequence, that is, the index of the first character that goes into the sub-sequence
end - The ending offset of the sub-sequence, that is, the index of the first character after those that go into the sub-sequence
Returns:
The requested sub-sequence

valueOf

public static SpannedString valueOf(CharSequence source)

Build 1.0_r1(from source)

Please submit a feedback, bug or feature