@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public class ResourceBundleUtil extends Object
ResourceBundle
utility class.Modifier and Type | Method and Description |
---|---|
static net.sf.json.JSONObject |
getBundle(String baseName)
Get a bundle JSON using the default Locale.
|
static net.sf.json.JSONObject |
getBundle(String baseName,
Locale locale)
Get a bundle JSON using the supplied Locale.
|
@NonNull public static net.sf.json.JSONObject getBundle(@NonNull String baseName) throws MissingResourceException
baseName
- The bundle base name.MissingResourceException
- Missing resource bundle.@NonNull public static net.sf.json.JSONObject getBundle(@NonNull String baseName, @NonNull Locale locale) throws MissingResourceException
baseName
- The bundle base name.locale
- The Locale.MissingResourceException
- Missing resource bundle.Copyright © 2004–2021. All rights reserved.