public class MessageFormat
extends java.lang.Object
Constructor and Description |
---|
MessageFormat() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
format(java.lang.String messageCode,
java.lang.String[] messageArgs)
Creates a formatted and localized message using the specified message code and
arguments.
|
static java.lang.String |
logFormat(java.lang.String messageCode,
java.lang.String[] messageArgs)
Similar to the method format(String, String[]) except that the message returned will
include the message code at the beginning.
|
public static java.lang.String format(java.lang.String messageCode, java.lang.String[] messageArgs)
messageCode
- used as the key to obtain the message from the resources.messageArgs
- array of arguments to be inserted in the message.public static java.lang.String logFormat(java.lang.String messageCode, java.lang.String[] messageArgs)
messageCode
- used as the key to obtain the message from the resources.messageArgs
- array of arguments to be inserted in the message.