| com.sun.xml.stream.xerces.util.MessageFormatter
All known Subclasses: com.sun.xml.stream.xerces.impl.msg.XMLMessageFormatter,
MessageFormatter | public interface MessageFormatter (Code) | | This interface provides a generic message formatting mechanism and
is useful for producing messages that must be localed and/or formatted
with replacement text.
See Also: com.sun.xml.stream.xerces.impl.XMLErrorReporter author: Andy Clark version: $Id: MessageFormatter.java,v 1.2 2006/04/01 06:01:40 jeffsuttor Exp $ |
Method Summary | |
public String | formatMessage(Locale locale, String key, Object[] arguments) Formats a message with the specified arguments using the given
locale information.
Parameters: locale - The locale of the message. Parameters: key - The message key. Parameters: arguments - The message replacement text arguments. |
formatMessage | public String formatMessage(Locale locale, String key, Object[] arguments) throws MissingResourceException(Code) | | Formats a message with the specified arguments using the given
locale information.
Parameters: locale - The locale of the message. Parameters: key - The message key. Parameters: arguments - The message replacement text arguments. The orderof the arguments must match that of the placeholdersin the actual message. Returns the formatted message. throws: MissingResourceException - Thrown if the message with thespecified key cannot be found. |
|
|