@Immutable public final class ResourceBundleHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
clearCache()
Clear the complete resource bundle cache using the default class loader!
|
static void |
clearCache(ClassLoader aClassLoader)
Clear the complete resource bundle cache using the specified class loader!
|
static ResourceBundle |
getResourceBundle(String sBundleName,
Locale aContentLocale) |
static ResourceBundle |
getResourceBundle(String sBundleName,
Locale aContentLocale,
ClassLoader aClassLoader) |
static String |
getString(ResourceBundle aResourceBundle,
String sKey) |
static String |
getString(String sBundleName,
Locale aContentLocale,
String sKey) |
static String |
getString(String sBundleName,
Locale aContentLocale,
String sKey,
ClassLoader aClassLoader) |
static ResourceBundle |
getUtf8ResourceBundle(String sBundleName,
Locale aContentLocale) |
static ResourceBundle |
getUtf8ResourceBundle(String sBundleName,
Locale aContentLocale,
ClassLoader aClassLoader) |
static String |
getUtf8String(String sBundleName,
Locale aContentLocale,
String sKey) |
static String |
getUtf8String(String sBundleName,
Locale aContentLocale,
String sKey,
ClassLoader aClassLoader) |
@Nullable public static ResourceBundle getResourceBundle(@Nonnull String sBundleName, @Nonnull Locale aContentLocale)
@Nullable public static ResourceBundle getResourceBundle(@Nonnull String sBundleName, @Nonnull Locale aContentLocale, @Nonnull ClassLoader aClassLoader)
@Nullable public static ResourceBundle getUtf8ResourceBundle(@Nonnull String sBundleName, @Nonnull Locale aContentLocale)
@Nullable public static ResourceBundle getUtf8ResourceBundle(@Nonnull String sBundleName, @Nonnull Locale aContentLocale, @Nonnull ClassLoader aClassLoader)
@Nullable public static String getString(@Nullable ResourceBundle aResourceBundle, @Nonnull @PropertyKey String sKey)
@Nullable public static String getString(@Nonnull String sBundleName, @Nonnull Locale aContentLocale, @Nonnull @PropertyKey String sKey)
@Nullable public static String getString(@Nonnull String sBundleName, @Nonnull Locale aContentLocale, @Nonnull @PropertyKey String sKey, @Nonnull ClassLoader aClassLoader)
@Nullable public static String getUtf8String(@Nonnull String sBundleName, @Nonnull Locale aContentLocale, @Nonnull @PropertyKey String sKey)
@Nullable public static String getUtf8String(@Nonnull String sBundleName, @Nonnull Locale aContentLocale, @Nonnull @PropertyKey String sKey, @Nonnull ClassLoader aClassLoader)
public static void clearCache()
public static void clearCache(@Nonnull ClassLoader aClassLoader)
aClassLoader - The class loader to be used. May not be null.Copyright © 2014–2016 Philip Helger. All rights reserved.