Package org.apache.juneau.internal
Class ResourceBundleUtils
java.lang.Object
org.apache.juneau.internal.ResourceBundleUtils
Class-related utility methods.
See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceBundle
empty()
Returns an empty resource bundle.static ResourceBundle
findBundle
(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.- Returns:
- The matching resource bundle, or
null if it could not be found.
-
empty
Returns an empty resource bundle.- Returns:
- An empty resource bundle.
-