public class MessageFormat extends ExtendedMessageFormat
ExtendedMessageFormat wrapper.MessageFormat.Field| Constructor and Description |
|---|
MessageFormat(String pattern) |
MessageFormat(String pattern,
Locale locale) |
MessageFormat(String pattern,
Locale locale,
Map<String,? extends FormatFactory> registry) |
MessageFormat(String pattern,
Map<String,? extends FormatFactory> registry) |
| Modifier and Type | Method and Description |
|---|---|
String |
render(Object... arguments)
Formats the current pattern with the given arguments.
|
StringBuffer |
render(StringBuffer buffer,
Object... arguments)
Formats the current pattern with the given arguments.
|
applyPattern, equals, hashCode, setFormat, setFormatByArgumentIndex, setFormats, setFormatsByArgumentIndex, toPatternclone, format, format, format, formatToCharacterIterator, getFormats, getFormatsByArgumentIndex, getLocale, parse, parse, parseObject, setLocaleformat, parseObjectpublic MessageFormat(String pattern)
public MessageFormat(String pattern, Locale locale, Map<String,? extends FormatFactory> registry)
public MessageFormat(String pattern, Map<String,? extends FormatFactory> registry)
public String render(Object... arguments)
arguments - The formatting argumentspublic StringBuffer render(StringBuffer buffer, Object... arguments)
buffer - The StringBufferarguments - The formatting argumentsCopyright © 2015. All Rights Reserved.