public class ResourceBundleWrapper extends Object
public class AppletC extends javax.swing.JApplet { public void init() { ResourceBundleWrapper.removeCodeBase(getCodeBase(), (URLClassLoader) getClass().getClassLoader()); ...
Modifier and Type | Method and Description |
---|---|
static ResourceBundle |
getBundle(String baseName)
Finds and returns the specified resource bundle.
|
static ResourceBundle |
getBundle(String baseName,
Locale locale)
Finds and returns the specified resource bundle.
|
static ResourceBundle |
getBundle(String baseName,
Locale locale,
ClassLoader loader)
Maps directly to
ResourceBundle.getBundle(baseName, locale,
loader) . |
static void |
removeCodeBase(URL codeBase,
URLClassLoader urlClassLoader)
Instantiate a
URLClassLoader for resource lookups where the
codeBase URL is removed. |
public static void removeCodeBase(URL codeBase, 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 ResourceBundle getBundle(String baseName)
baseName
- the base name.public static ResourceBundle getBundle(String baseName, Locale locale)
baseName
- the base name.locale
- the locale.public static ResourceBundle getBundle(String baseName, Locale locale, ClassLoader loader)
ResourceBundle.getBundle(baseName, locale,
loader)
.baseName
- the base name.locale
- the locale.loader
- the class loader.Jas4pp 1.5 © Java Analysis Studio for Particle Physics