ResourceBundle.Control class methods in Java

java.util.ResourceBundle.Control

ResourceBundle.Control defines a set of callback methods that are invoked by the ResourceBundle.getBundle factory methods during the bundle loading process.

Some methods of ResourceBundle.Control class


equals(Object)This method indicates whether some other object is "equal to" this one.


ResourceBundle.Control constants ResourceBundle.Control.FORMAT_CLASS, ResourceBundle.Control.FORMAT_DEFAULT, etc.


getCandidateLocales(String, Locale)This method returns a List of Locales as candidate locales for baseName and locale.


getControl(List)This method returns a ResourceBundle.Control in which the getFormats method returns the specified formats.


getFallbackLocale(String, Locale) This method returns a Locale to be used as a fallback locale for further resource bundle searches by the ResourceBundle.getBundle factory method.


getFormats(String)This method returns a List of Strings containing formats to be used to load resource bundles for the given baseName.


getNoFallbackControl(List)This method returns a ResourceBundle.Control in which the getFormats method returns the specified formats and the getFallbackLocalemethod returns null.


getTimeToLive(String, Locale)This method returns the time-to-live (TTL) value for resource bundles that are loaded under this ResourceBundle.Control.


hashCode()This method returns a hash code value for the object.


needsReload(String, Locale, String, ClassLoader, ResourceBundle, long)This method determines if the expired bundle in the cache needs to be reloaded based on the loading time given by loadTime or some other criteria.


newBundle(String, Locale, String, ClassLoader, boolean)This method instantiates a resource bundle for the given bundle name of the given format and locale, using the given class loader if necessary.


toBundleName(String, Locale)This method converts the given baseName and locale to the bundle name.


toResourceName(String, String)This method converts the given bundleName to the form required by the ClassLoader.getResourcemethod by replacing all occurrences of '.' in bundleName with '/' and appending a '.' and the given file suffix.


toString()This method returns a string representation of the object.


No comments:

Post a Comment