API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.util. ResourceBundle.Control View Source
Author(s)
Since
1.6
Version
Serial
Hierarchy
 Object
      ResourceBundle.Control
Implements
Subclasses
Description
publicstatic class ResourceBundle.Control
  ResourceBundle.Control defines a set of callback methods that are invoked by the ResourceBundle.getBundle factory methods during the bundle loading process.
See also:   
Constructors
protected ResourceBundle.Control ()
  Sole constructor.
Methods
Hide/Show inherited methods
public List<Locale> getCandidateLocales (String baseName, Locale locale)
  Returns a List of Locales as candidate locales for baseName and locale.
publicfinalstatic Control getControl (List<String> formats)
  Returns a ResourceBundle.Control in which the getFormats method returns the specified formats.
public Locale getFallbackLocale (String baseName, Locale locale)
  Returns a Locale to be used as a fallback locale for further resource bundle searches by the ResourceBundle.getBundle factory method.
public List<String> getFormats (String baseName)
  Returns a List of Strings containing formats to be used to load resource bundles for the given baseName.
publicfinalstatic Control getNoFallbackControl (List<String> formats)
  Returns a ResourceBundle.Control in which the getFormats method returns the specified formats and the getFallbackLocale method returns null.
public long getTimeToLive (String baseName, Locale locale)
  Returns the time-to-live (TTL) value for resource bundles that are loaded under this ResourceBundle.Control.
public boolean needsReload (String baseName, Locale locale, String format, ClassLoader loader, ResourceBundle bundle, long loadTime)
  Determines if the expired bundle in the cache needs to be reloaded based on the loading time given by loadTime or some other criteria.
public ResourceBundle newBundle (String baseName, Locale locale, String format, ClassLoader loader, boolean reload) throws IllegalAccessException InstantiationException IOException
  Instantiates a resource bundle for the given bundle name of the given format and locale, using the given class loader if necessary.
public String toBundleName (String baseName, Locale locale)
  Converts the given baseName and locale to the bundle name.
publicfinal String toResourceName (String bundleName, String suffix)
  Converts the given bundleName to the form required by the ClassLoader.getResource method by replacing all occurrences of '.' in bundleName with '/' and appending a '.' and the given file suffix.
Fields
Hide/Show inherited fields
publicfinalstatic List<String> FORMAT_CLASS
  The class-only format List containing "java.class".
publicfinalstatic List<String> FORMAT_DEFAULT
  The default format List, which contains the strings "java.class" and "java.properties", in this order.
publicfinalstatic List<String> FORMAT_PROPERTIES
  The properties-only format List containing "java.properties".
publicfinalstatic long TTL_DONT_CACHE = "-1"
  The time-to-live constant for not caching loaded resource bundle instances.
publicfinalstatic long TTL_NO_EXPIRATION_CONTROL = "-2"
  The time-to-live constant for disabling the expiration control for loaded resource bundle instances in the cache.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar