Package org.apache.juneau.commons.utils
Class ResourceBundleUtils
java.lang.Object
org.apache.juneau.commons.utils.ResourceBundleUtils
Class-related utility methods.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceBundlefindBundle(String baseName, Locale locale, ClassLoader loader) Same asResourceBundle.getBundle(String, Locale, ClassLoader)but never throws aMissingResourceException.
-
Constructor Details
-
ResourceBundleUtils
public ResourceBundleUtils()
-
-
Method Details
-
findBundle
Same asResourceBundle.getBundle(String, Locale, ClassLoader)but never throws aMissingResourceException.- Parameters:
baseName- The base name of the resource bundle, a fully qualified class name.locale- The locale for which a resource bundle is desired.loader- The class loader from which to load the resource bundle. Must not benull .- Returns:
- The matching resource bundle, or
null if it could not be found.
-