API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.util. ResourceBundle View Source
Author(s)
Since
JDK1.1
Version
Serial
Hierarchy
 Object
      ResourceBundle
Implements
Subclasses
Description
publicabstract abstract class ResourceBundle
  Resource bundles contain locale-specific objects.
Constructors
public ResourceBundle ()
  Sole constructor.
Methods
Hide/Show inherited methods
publicfinalstatic void clearCache ()
  Removes all resource bundles from the cache that have been loaded using the caller's class loader.
publicfinalstatic void clearCache (ClassLoader loader)
  Removes all resource bundles from the cache that have been loaded using the given class loader.
public boolean containsKey (String key)
  Determines whether the given key is contained in this ResourceBundle or its parent bundles.
publicfinalstatic ResourceBundle getBundle (String baseName)
  Gets a resource bundle using the specified base name, the default locale, and the caller's class loader.
publicfinalstatic ResourceBundle getBundle (String baseName, Locale locale)
  Gets a resource bundle using the specified base name and locale, and the caller's class loader.
publicstatic ResourceBundle getBundle (String baseName, Locale locale, ClassLoader loader)
  Gets a resource bundle using the specified base name, locale, and class loader.
publicstatic ResourceBundle getBundle (String baseName, Locale targetLocale, ClassLoader loader, Control control)
  Returns a resource bundle using the specified base name, target locale, class loader and control.
publicfinalstatic ResourceBundle getBundle (String baseName, Locale targetLocale, Control control)
  Returns a resource bundle using the specified base name, target locale and control, and the caller's class loader.
publicfinalstatic ResourceBundle getBundle (String baseName, Control control)
  Returns a resource bundle using the specified base name, the default locale and the specified control.
publicabstract Enumeration<String> getKeys ()
  Returns an enumeration of the keys.
public Locale getLocale ()
  Returns the locale of this resource bundle.
publicfinal Object getObject (String key)
  Gets an object for the given key from this resource bundle or one of its parents.
publicfinal String getString (String key)
  Gets a string for the given key from this resource bundle or one of its parents.
publicfinal String getStringArray (String key)
  Gets a string array for the given key from this resource bundle or one of its parents.
protectedabstract Object handleGetObject (String key)
  Gets an object for the given key from this resource bundle.
protected Set<String> handleKeySet ()
  Returns a Set of the keys contained only in this ResourceBundle.
public Set<String> keySet ()
  Returns a Set of all keys contained in this ResourceBundle and its parent bundles.
protected void setParent (ResourceBundle parent)
  Sets the parent bundle of this bundle.
Fields
Hide/Show inherited fields
protected ResourceBundle parent
  The parent bundle of this bundle.
Nested Classes
  ResourceBundle.Control
ResourceBundle.Control defines a set of callback methods that are invoked by the ResourceBundle.getBundle factory methods during the bundle loading process.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar