Package com.iizix.server
Class Messages
java.lang.Object
com.iizix.server.Messages
Class to handle localized messages.
- Author:
- Christopher Mindus
- Method Details- getStringGets the localized string from a resource bundle.- Parameters:
- key- The key for the localized message.
- Returns:
- The string matching a key.
 
- getStringGets the localized string from a resource bundle.- Parameters:
- key- The key for the localized message.
- defaultMessage- The default message to use, or null for none.
- Returns:
- The string matching a key.
 
- formatGets the localized string from a resource bundle. The string in the resource bundle should have the "printf"-style formatting for the "objects" parameter(s).- Parameters:
- key- The key for the localized message.
- objects- The parameters.
- Returns:
- The string matching a key.
 
- formatGets the localized string from a resource bundle. The string in the resource bundle should have the "printf"-style formatting for the "objects" parameter(s).- Parameters:
- key- The key for the localized message.
- defaultMessage- The default message to use, or null for none.
- objects- The parameters.
- Returns:
- The string matching a key.