All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----com.ibm.as400.ui.util.ResourceLoader
ResourceBundle
operations and handles exceptions gracefully.
For example, if a string resource
cannot be accessed, ResourceLoader
returns
the string "RESOURCEMISSING", allowing the developer to
quickly detect the missing resource and correct the problem.
public ResourceLoader()
public void setResourceName(String name)
setResourceName
attempts to load the specified
resource bundle. If an error occurs, an exception is logged
and appropriate action is taken on subsequent requests for
specific resources.
getString
will return the string "RESOURCEBUNDLEERROR".
public String getString(String key)
getString
looks for the string resource identified
by the specified key in the resource bundle specified on setResourceName
.
If the string could not be found, getString
returns "RESOURCEMISSING". If the resource bundle could not
be loaded, getString
returns "RESOURCEBUNDLEERROR".
All Packages Class Hierarchy This Package Previous Next Index