public class ResourceBundleUtil
extends Object
Modifier and Type | Field and Description |
---|---|
static ResourceBundle |
EMPTY_RESOURCE_BUNDLE |
Constructor and Description |
---|
ResourceBundleUtil() |
Modifier and Type | Method and Description |
---|---|
static ResourceBundle |
getBundle(String baseName,
Class<?> clazz) |
static ResourceBundle |
getBundle(String baseName,
ClassLoader classLoader) |
static ResourceBundle |
getBundle(String baseName,
Locale locale,
Class<?> clazz) |
static ResourceBundle |
getBundle(String baseName,
Locale locale,
ClassLoader classLoader) |
static Map<Locale,String> |
getLocalizationMap(ResourceBundleLoader resourceBundleLoader,
String key) |
static Map<Locale,String> |
getLocalizationMap(String baseName,
Class<?> clazz,
String key)
Deprecated.
As of 7.0.0
|
static ResourceBundleLoader |
getResourceBundleLoader(String baseName,
ClassLoader classLoader) |
static String |
getString(ResourceBundle resourceBundle,
Locale locale,
String key,
Object[] arguments)
Deprecated.
As of 7.0.0, replaced by
getString(ResourceBundle,
String, Object...) |
static String |
getString(ResourceBundle resourceBundle,
String key) |
static String |
getString(ResourceBundle resourceBundle,
String key,
Object... arguments) |
static void |
loadResourceBundles(Map<String,ResourceBundle> resourceBundles,
Locale locale,
ResourceBundleLoader resourceBundleLoader)
Deprecated.
As of 7.0.0, with no direct replacement
|
static void |
loadResourceBundles(Map<String,ResourceBundle> resourceBundles,
String languageId,
ResourceBundleLoader resourceBundleLoader)
Deprecated.
As of 7.0.0, with no direct replacement
|
public static ResourceBundle getBundle(String baseName, Class<?> clazz)
public static ResourceBundle getBundle(String baseName, ClassLoader classLoader)
public static ResourceBundle getBundle(String baseName, Locale locale, Class<?> clazz)
public static ResourceBundle getBundle(String baseName, Locale locale, ClassLoader classLoader)
public static Map<Locale,String> getLocalizationMap(ResourceBundleLoader resourceBundleLoader, String key)
@Deprecated public static Map<Locale,String> getLocalizationMap(String baseName, Class<?> clazz, String key)
public static ResourceBundleLoader getResourceBundleLoader(String baseName, ClassLoader classLoader)
@Deprecated public static String getString(ResourceBundle resourceBundle, Locale locale, String key, Object[] arguments)
getString(ResourceBundle,
String, Object...)
public static String getString(ResourceBundle resourceBundle, String key)
public static String getString(ResourceBundle resourceBundle, String key, Object... arguments)
@Deprecated public static void loadResourceBundles(Map<String,ResourceBundle> resourceBundles, Locale locale, ResourceBundleLoader resourceBundleLoader)
@Deprecated public static void loadResourceBundles(Map<String,ResourceBundle> resourceBundles, String languageId, ResourceBundleLoader resourceBundleLoader)