public class ResourceBundleWrapper extends java.lang.Object
public class AppletC extends javax.swing.JApplet { public void init() { ResourceBundleWrapper.removeCodeBase(getCodeBase(), (URLClassLoader) getClass().getClassLoader()); ...
Modifier and Type | Method and Description |
---|---|
static java.util.ResourceBundle |
getBundle(java.lang.String baseName)
Finds and returns the specified resource bundle.
|
static java.util.ResourceBundle |
getBundle(java.lang.String baseName,
java.util.Locale locale)
Finds and returns the specified resource bundle.
|
static java.util.ResourceBundle |
getBundle(java.lang.String baseName,
java.util.Locale locale,
java.lang.ClassLoader loader)
Maps directly to
ResourceBundle.getBundle(baseName, locale,
loader) . |
static void |
removeCodeBase(java.net.URL codeBase,
java.net.URLClassLoader urlClassLoader)
Instantiate a
URLClassLoader for resource lookups where the
codeBase URL is removed. |
public static void removeCodeBase(java.net.URL codeBase, java.net.URLClassLoader urlClassLoader)
URLClassLoader
for resource lookups where the
codeBase URL is removed. This method is typically called from an
applet's init() method. If this method is never called, the
getBundle()
methods map to the standard
ResourceBundle
lookup methods.codeBase
- the codeBase URL.urlClassLoader
- the class loader.public static java.util.ResourceBundle getBundle(java.lang.String baseName)
baseName
- the base name.public static java.util.ResourceBundle getBundle(java.lang.String baseName, java.util.Locale locale)
baseName
- the base name.locale
- the locale.public static java.util.ResourceBundle getBundle(java.lang.String baseName, java.util.Locale locale, java.lang.ClassLoader loader)
ResourceBundle.getBundle(baseName, locale,
loader)
.baseName
- the base name.locale
- the locale.loader
- the class loader.