@Deprecated public class FormattedMessage extends java.lang.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 java.lang.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.
|
java.lang.CharSequence |
subSequence(int start,
int end)
Deprecated.
This API is for ICU internal use only.
|
java.text.AttributedCharacterIterator |
toCharacterIterator()
Deprecated.
This API is for ICU internal use only.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toString
@Deprecated public FormattedMessage()
@Deprecated public int length()
length
in interface java.lang.CharSequence
@Deprecated public char charAt(int index)
charAt
in interface java.lang.CharSequence
@Deprecated public java.lang.CharSequence subSequence(int start, int end)
subSequence
in interface java.lang.CharSequence
@Deprecated public <A extends java.lang.Appendable> A appendTo(A appendable)
If an IOException occurs when appending to the Appendable, an unchecked
ICUUncheckedIOException
is thrown instead.
appendTo
in interface FormattedValue
appendable
- 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 FormattedValue
cfpos
- 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 java.text.AttributedCharacterIterator toCharacterIterator()
Consider using FormattedValue.nextPosition(com.ibm.icu.text.ConstrainedFieldPosition)
if you are trying to get field information.
toCharacterIterator
in interface FormattedValue
Copyright ? 2016 Unicode, Inc. and others.