O
- is the generic type of the object to format(Object, Locale, Map, NlsTemplateResolver)
.public interface NlsFormatter<O>
Format
Modifier and Type | Method and Description |
---|---|
String |
format(O object,
Locale locale,
Map<String,Object> arguments,
NlsTemplateResolver resolver)
This method formats the given
object according to the given locale . |
void |
format(O object,
Locale locale,
Map<String,Object> arguments,
NlsTemplateResolver resolver,
Appendable buffer)
This method formats the given
object according to the given locale . |
String format(O object, Locale locale, Map<String,Object> arguments, NlsTemplateResolver resolver)
object
according to the given locale
.object
- is the object to format.locale
- is the locale used for localized formatting.arguments
- is the Map
of arguments.resolver
- is the NlsTemplateResolver
.object
.void format(O object, Locale locale, Map<String,Object> arguments, NlsTemplateResolver resolver, Appendable buffer) throws IOException
object
according to the given locale
.object
- is the object to format.locale
- is the locale used for localized formatting.arguments
- is the Map
of arguments
.resolver
- is the NlsTemplateResolver
.buffer
- is where to append the formatted object
.IOException
- if the given Appendable
caused such exception.Copyright © 2001–2016 mmm-Team. All rights reserved.