|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
O - is the generic type of the object to
format(Object, Locale, Map, NlsTemplateResolver).public interface NlsFormatter<O>
This is the interface for a formatter of an arbitrary object in a localized
way.
Format| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||