public interface TextFragment
Modifier and Type | Method and Description |
---|---|
char |
charAt(int subSequenceIndex)
Obtain character at specified index within this fragment's sub-sequence,
where index 0 corresponds to beginning index in overal text source, and
subSequenceIndex must be less than ending index - beginning index.
|
int |
getBeginIndex()
Obtain beginning index (inclusive) of sub-sequence of fragment in overall text source.
|
int |
getBidiLevel()
Obtain associated bidi level (if known) or -1 if not.
|
int |
getEndIndex()
Obtain ending index (exclusive) of sub-sequence of fragment in overall text source.
|
CharacterIterator |
getIterator()
Obtain reference to underlying iterator.
|
String |
getLanguage()
Obtain associated language (if designated) or "none" if not.
|
String |
getScript()
Obtain associated script (if designated) or "auto" if not.
|
CharSequence |
subSequence(int startIndex,
int endIndex) |
CharacterIterator getIterator()
int getBeginIndex()
int getEndIndex()
String getScript()
String getLanguage()
int getBidiLevel()
char charAt(int subSequenceIndex)
CharSequence subSequence(int startIndex, int endIndex)
Copyright © 2025 Apache Software Foundation. All rights reserved.