@Deprecated public class FormattedMessage extends Object implements FormattedValue
This contains information about where the various fields and placeholders ended up in the final result.
This class allows the result to be exported in several data types,
including a String, AttributedCharacterIterator, more (TBD).
| Constructor and Description |
|---|
FormattedMessage()
Deprecated.
This API is for ICU internal use only.
|
| Modifier and Type | Method and Description |
|---|---|
<A extends Appendable> |
appendTo(A appendable)
Deprecated.
This API is for ICU internal use only.
|
char |
charAt(int index)
Deprecated.
This API is for ICU internal use only.
|
int |
length()
Deprecated.
This API is for ICU internal use only.
|
boolean |
nextPosition(ConstrainedFieldPosition cfpos)
Deprecated.
This API is for ICU internal use only.
|
CharSequence |
subSequence(int start,
int end)
Deprecated.
This API is for ICU internal use only.
|
AttributedCharacterIterator |
toCharacterIterator()
Deprecated.
This API is for ICU internal use only.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoStringchars, codePoints@Deprecated public FormattedMessage()
@Deprecated public int length()
length in interface CharSequence@Deprecated public char charAt(int index)
charAt in interface CharSequence@Deprecated public CharSequence subSequence(int start, int end)
subSequence in interface CharSequence@Deprecated public <A extends Appendable> A appendTo(A appendable)
If an IOException occurs when appending to the Appendable, an unchecked
ICUUncheckedIOException is thrown instead.
appendTo in interface FormattedValueappendable - The Appendable to which to append the string output.@Deprecated public boolean nextPosition(ConstrainedFieldPosition cfpos)
ConstrainedFieldPosition cfpos = new ConstrainedFieldPosition();
while (fmtval.nextPosition(cfpos)) {
// handle the field position; get information from cfpos
}
nextPosition in interface FormattedValuecfpos - The object used for iteration state. This can provide constraints to iterate over
only one specific field; see ConstrainedFieldPosition.constrainField(java.text.Format.Field).@Deprecated public AttributedCharacterIterator toCharacterIterator()
Consider using FormattedValue.nextPosition(com.ibm.icu.text.ConstrainedFieldPosition) if you are trying to get field information.
toCharacterIterator in interface FormattedValueCopyright © 2016 Unicode, Inc. and others.