public interface TemplateFormatter
Different implementation can support different formats for the template.
| Modifier and Type | Method and Description |
|---|---|
String |
format(String msgTemplate,
List<String> args,
Locale locale)
Formats a message template for the target locale.
|
String |
format(String msgTemplate,
List<String> args,
Locale locale,
TimeZone tz)
Formats a message template for the target locale.
|
String format(String msgTemplate, List<String> args, Locale locale)
msgTemplate - locale-specific message templateargs - arguments to substitute in the templatelocale - target locale; used to localize replaced argsLocalizationException - if formatting failedString format(String msgTemplate, List<String> args, Locale locale, TimeZone tz)
msgTemplate - locale-specific message templateargs - arguments to substitute in the templatelocale - target locale; used to localize replaced argstz - target time zone for date and time values; if null
default MessageFormat behavior will be usedLocalizationException - if formatting failedCopyright © 2023. All rights reserved.