public class StringFormatI18nMessageFormatter extends Object implements I18nMessageFormatter
I18nMessageFormatter based on Formatter
syntax.
Note: This is the default message formatter used by
i18n system.Formatter,
String.format(Locale, String, Object...)public String format(Locale locale, String message, Object... args)
I18nMessageFormattermessage with locale and optinal args.
The main purpose is to replace placeholders in message with
args value.
This may depend on locale for date purpose for example.format in interface I18nMessageFormatterlocale - locale to use for formatting (number, date, ...)message - message to format (that contains placeholders)args - object array to use in formatting the messageCopyright © 2004-2013 CodeLutin. All Rights Reserved.