public final class ResourceBundleUtils extends Object
Constructor and Description |
---|
ResourceBundleUtils() |
Modifier and Type | Method and Description |
---|---|
static ResourceBundle |
empty()
Returns an empty resource bundle.
|
static ResourceBundle |
findBundle(String baseName,
Locale locale,
ClassLoader loader)
Same as
ResourceBundle.getBundle(String, Locale, ClassLoader) but never throws a MissingResourceException . |
public ResourceBundleUtils()
public static ResourceBundle findBundle(String baseName, Locale locale, ClassLoader loader)
ResourceBundle.getBundle(String, Locale, ClassLoader)
but never throws a MissingResourceException
.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.public static ResourceBundle empty()
Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.