public class ChainedResourceBundle extends PropertyResourceBundle
ResourceBundle.Control
parent
Modifier | Constructor and Description |
---|---|
protected |
ChainedResourceBundle(InputStream is) |
Modifier and Type | Method and Description |
---|---|
static ResourceBundle |
getBundle(ResourceBundle parent,
String res,
ClassLoader classLoader)
Load and return specified resource bundle using specified class loader.
|
static ResourceBundle |
getBundle(ResourceBundle parent,
String res,
Locale loc)
Load and return specified resource bundle for the specified locale.
|
static ResourceBundle |
getBundle(ResourceBundle parent,
String res,
Locale loc,
ClassLoader classLoader)
Load and return specified resource bundle for the specified locale.
|
static ResourceBundle |
getBundle(String res,
ClassLoader classLoader)
Load and return specified resource bundle using specified class loader.
|
ResourceBundle |
getParent() |
void |
setParent(ResourceBundle rb) |
getKeys, handleGetObject, handleKeySet
clearCache, clearCache, containsKey, getBaseBundleName, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, keySet
protected ChainedResourceBundle(InputStream is) throws IOException
is
- IOException
public static ResourceBundle getBundle(String res, ClassLoader classLoader) throws MissingResourceException
res
- Fully-qualified name of the resource bundle, i.e.
com.portal.app.someapp.MyResources
classLoader
- The classloader that should be used to load the
resource bundle. In most cases it should be the caller's
class loader which can be obtained by calling
this.getClass().getClassLoader()
. Value
should not be null.MissingResourceException
- if the bundle can't be loadedpublic static ResourceBundle getBundle(ResourceBundle parent, String res, ClassLoader classLoader) throws MissingResourceException
parent
- ResourceBundle that is set as the parent of the
returned bundle.res
- Fully-qualified name of the resource bundle, i.e.
com.portal.app.someapp.MyResources
classLoader
- The classloader that should be used to load the
resource bundle. In most cases it should be the caller's
class loader which can be obtained by calling
this.getClass().getClassLoader()
. Value
should not be null.MissingResourceException
- if the bundle can't be loadedpublic static ResourceBundle getBundle(ResourceBundle parent, String res, Locale loc) throws MissingResourceException
parent
- ResourceBundle that is set as the parent of the
returned bundle.res
- Fully-qualified name of the resource bundle, i.e.
com.portal.app.someapp.MyResources
loc
- The locale for which the resource bundle will be loaded.MissingResourceException
- if the bundle can't be loadedpublic static ResourceBundle getBundle(ResourceBundle parent, String res, Locale loc, ClassLoader classLoader) throws MissingResourceException
parent
- ResourceBundle that is set as the parent of the
returned bundle.res
- Fully-qualified name of the resource bundle, i.e.
com.portal.app.someapp.MyResources
loc
- The locale for which the resource bundle will be loaded.classLoader
- The classloader that should be used to load the
resource bundle. In most cases it should be the caller's
class loader which can be obtained by calling
this.getClass().getClassLoader()
. Value
should not be null.MissingResourceException
- if the bundle can't be loadedpublic void setParent(ResourceBundle rb)
setParent
in class ResourceBundle
rb
- public ResourceBundle getParent()
Copyright © 2003, 2023, Oracle and/or its affiliates.