|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.sns.application.Util
Utility class providing convenience methods for use in the application framework.
| Constructor Summary | |
protected |
Util()
Creates a new instance of Util |
| Method Summary | |
static java.util.Map |
getPropertiesFromResource(java.lang.String propertyFile)
Convenience method for loading the resource bundle from a file whose path is specified relative to the application's resources folder. |
protected static java.lang.String[] |
getTokens(java.lang.String string)
Parse a string into tokens where whitespace is the delimiter. |
protected static java.lang.String[] |
getTokens(java.lang.String string,
java.lang.String delim)
Parse a string into tokens with the specified delimiter. |
static java.util.Map |
loadResourceBundle(java.lang.String path)
Load the resource bundle specified by the path. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected Util()
| Method Detail |
public static java.util.Map loadResourceBundle(java.lang.String path)
throws java.util.MissingResourceException
path - The path to the properties file
java.util.MissingResourceException - If the resource bundle cannot be found.
public static java.util.Map getPropertiesFromResource(java.lang.String propertyFile)
throws java.util.MissingResourceException
propertyFile - The property file path relative to the application's resources folder
java.util.MissingResourceException - If the resource bundle cannot be found.loadResourceBundle(java.lang.String)protected static java.lang.String[] getTokens(java.lang.String string)
string - The string to parse.
protected static java.lang.String[] getTokens(java.lang.String string,
java.lang.String delim)
string - The string to parse.delim - The delimiter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||