Lines Matching defs:MessageFormat

53  * <code>MessageFormat</code> provides a means to produce concatenated
58 * <code>MessageFormat</code> takes a set of objects, formats them, then
63 * <code>MessageFormat</code> differs from the other <code>Format</code>
64 * classes in that you create a <code>MessageFormat</code> object with one
66 * method). The factory methods aren't necessary because <code>MessageFormat</code>
73 * <code>MessageFormat</code> uses patterns of the following form:
134 * bundle source files) which strings will be processed by {@code MessageFormat}.
228 * The first example uses the static method <code>MessageFormat.format</code>,
229 * which internally creates a <code>MessageFormat</code> for one-time use:
234 * String result = MessageFormat.format(
244 * The following example creates a <code>MessageFormat</code> instance that
251 * MessageFormat form = new MessageFormat(
267 * MessageFormat form = new MessageFormat("The disk \"{1}\" contains {0}.");
297 * by a <code>ChoiceFormat</code> in <code>MessageFormat</code> is treated as special;
299 * If you create both a <code>MessageFormat</code> and <code>ChoiceFormat</code>
306 * MessageFormat mf = new MessageFormat("{0,number,#.##}, {0,number,#.#}");
316 * Likewise, parsing with a {@code MessageFormat} object using patterns containing
320 * MessageFormat mf = new MessageFormat("{0}, {0}, {0}");
346 public class MessageFormat extends Format {
351 * Constructs a MessageFormat for the default locale and the
361 public MessageFormat(String pattern) {
367 * Constructs a MessageFormat for the specified locale and
379 public MessageFormat(String pattern, Locale locale) {
752 * Formats an array of objects and appends the <code>MessageFormat</code>'s
780 * (new MessageFormat(subformat.format(argument), getLocale())).format(argument) :
823 * Creates a MessageFormat with the given pattern and uses it
826 * <code>(new {@link #MessageFormat(String) MessageFormat}(pattern)).{@link #format(java.lang.Object[], java.lang.StringBuffer, java.text.FieldPosition) format}(arguments, new StringBuffer(), null).toString()</code>
835 MessageFormat temp = new MessageFormat(pattern);
841 * Formats an array of objects and appends the <code>MessageFormat</code>'s
865 * <code>MessageFormat</code>'s pattern, producing an
880 * type <code>MessageFormat.Field</code>, their values are
885 * instances that <code>MessageFormat</code> uses will also be
1035 throw new ParseException("MessageFormat parse error!", pos.errorIndex);
1074 MessageFormat other = (MessageFormat) super.clone();
1097 MessageFormat other = (MessageFormat) obj;
1118 * from <code>MessageFormat.formatToCharacterIterator</code>.
1141 * @return resolved MessageFormat.Field constant
1144 if (this.getClass() != MessageFormat.Field.class) {
1255 subFormatter = new MessageFormat(arg, locale);
1591 throw new InvalidObjectException("Could not reconstruct MessageFormat from corrupt stream.");