@Test public void MessageLocale() { MessageFormat msg = new MessageFormat("hello {0} {1}", Locale.CANADA); Assert.assertNotNull(msg); Assert.assertEquals(msg.render("one", "two"), "hello one two"); StringBuffer buffer = new StringBuffer(); msg.render(buffer, "one", "two"); Assert.assertEquals(buffer.toString(), "hello one two"); Assert.assertEquals(new MessageFormat("hi {0}").render("ho"), "hi ho"); }
public String render(Object... arguments) { return format(arguments); }
MessageFormat extends com.ibm.icu.text.MessageFormat { public String render(Object... arguments) { return format(arguments); } }
MessageFormat extends com.ibm.icu.text.MessageFormat { public String render(Object... arguments) { return format(arguments); } MessageFormat(String pattern);  MessageFormat(String pattern, Locale locale); }
MessageFormat extends com.ibm.icu.text.MessageFormat { public String render(Object... arguments) { return format(arguments); } MessageFormat(String pattern);  MessageFormat(String pattern, Locale locale); String render(Object... arguments); StringBuffer render(StringBuffer buffer, Object... arguments); }
MessageFormat extends com.ibm.icu.text.MessageFormat { public String render(Object... arguments) { return format(arguments); } MessageFormat(String pattern);  MessageFormat(String pattern, Locale locale); String render(Object... arguments); StringBuffer render(StringBuffer buffer, Object... arguments);  }