protected static final java.lang.String | getString(java.lang.String className, java.lang.String resource_name, java.lang.String key)Returns the message string with the specified key from the
"properties" file in the package containing the class with
the specified name.
PropertyResourceBundle bundle = null;
try {
InputStream stream =
Class.forName(className).getResourceAsStream(resource_name);
bundle = new PropertyResourceBundle(stream);
} catch(Throwable e) {
throw new RuntimeException(e); // Chain the exception.
}
return (String)bundle.handleGetObject(key);
|