net.sf.mmm.util.nls.api
Interface NlsMessageFormatter
- All Superinterfaces:
- NlsFormatter<Void>
- All Known Implementing Classes:
- AbstractNlsMessageFormatter, NlsMessageFormatterImpl
public interface NlsMessageFormatter
- extends NlsFormatter<Void>
This is the interface for a formatter of a message-text. It is a simplified
view on something like MessageFormat.
- Since:
- 1.0.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
format
void format(Void nothing,
Locale locale,
Map<String,Object> arguments,
NlsTemplateResolver resolver,
Appendable buffer)
throws IOException
- This method formats the underlying pattern by filling in the given
arguments and writing the result into the given
buffer.
This method formats the given object according to the given
locale.
- Specified by:
format in interface NlsFormatter<Void>
- Parameters:
nothing - has to be null. Only for generic compatibility.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.
- Throws:
IOException - if the given Appendable caused such exception.
Copyright © 2001-2010 mmm-Team. All Rights Reserved.