| java.lang.Object org.apache.harmony.luni.util.Msg
Msg | public class Msg (Code) | | This class retrieves strings from a resource bundle and returns them,
formatting them with MessageFormat when required.
It is used by the system classes to provide national language support, by
looking up messages in the
org.apache.harmony.luni.util.ExternalMessages
resource bundle. Note that if this file is not available, or an invalid key
is looked up, or resource bundle support is not available, the key itself
will be returned as the associated message. This means that the KEY
should a reasonable human-readable (english) string.
|
Method Summary | |
public static String | getString(String msg) Retrieves a message which has no arguments.
Parameters: msg - String the key to look up. | public static String | getString(String msg, Object arg) Retrieves a message which takes 1 argument.
Parameters: msg - String the key to look up. Parameters: arg - Object the object to insert in the formatted output. | public static String | getString(String msg, int arg) Retrieves a message which takes 1 integer argument.
Parameters: msg - String the key to look up. Parameters: arg - int the integer to insert in the formatted output. | public static String | getString(String msg, char arg) Retrieves a message which takes 1 character argument.
Parameters: msg - String the key to look up. Parameters: arg - char the character to insert in the formatted output. | public static String | getString(String msg, Object arg1, Object arg2) Retrieves a message which takes 2 arguments.
Parameters: msg - String the key to look up. Parameters: arg1 - Object an object to insert in the formatted output. Parameters: arg2 - Object another object to insert in the formatted output. | public static String | getString(String msg, Object[] args) Retrieves a message which takes several arguments.
Parameters: msg - String the key to look up. Parameters: args - Object[] the objects to insert in the formatted output. |
getString | public static String getString(String msg)(Code) | | Retrieves a message which has no arguments.
Parameters: msg - String the key to look up. String the message for that key in the system message bundle. |
getString | public static String getString(String msg, Object arg)(Code) | | Retrieves a message which takes 1 argument.
Parameters: msg - String the key to look up. Parameters: arg - Object the object to insert in the formatted output. String the message for that key in the system message bundle. |
getString | public static String getString(String msg, int arg)(Code) | | Retrieves a message which takes 1 integer argument.
Parameters: msg - String the key to look up. Parameters: arg - int the integer to insert in the formatted output. String the message for that key in the system message bundle. |
getString | public static String getString(String msg, char arg)(Code) | | Retrieves a message which takes 1 character argument.
Parameters: msg - String the key to look up. Parameters: arg - char the character to insert in the formatted output. String the message for that key in the system message bundle. |
getString | public static String getString(String msg, Object arg1, Object arg2)(Code) | | Retrieves a message which takes 2 arguments.
Parameters: msg - String the key to look up. Parameters: arg1 - Object an object to insert in the formatted output. Parameters: arg2 - Object another object to insert in the formatted output. String the message for that key in the system message bundle. |
getString | public static String getString(String msg, Object[] args)(Code) | | Retrieves a message which takes several arguments.
Parameters: msg - String the key to look up. Parameters: args - Object[] the objects to insert in the formatted output. String the message for that key in the system message bundle. |
|
|