public class ResourceBundleUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_PREFIX |
static String |
PROPERTIES_FILE_BASE_NAME |
| Modifier and Type | Method and Description |
|---|---|
static ResourceBundle |
getPackageResourceBundle(Class<?> type) |
static String |
getPackageResourceStringPrefixed(Class<?> type,
String resourceKey) |
static String |
getPackageResourceStringPrefixed(String aPackage,
String resourceKey,
ClassLoader classLoader)
Gets a resource string from the package-
ResourceBundle (Bundle.properties), if the resourceKey is
prefixed with '%', else the resoure key itself gets returned. |
public static final String PROPERTIES_FILE_BASE_NAME
public static final String KEY_PREFIX
public static ResourceBundle getPackageResourceBundle(Class<?> type)
public static String getPackageResourceStringPrefixed(Class<?> type, String resourceKey)
public static String getPackageResourceStringPrefixed(String aPackage, String resourceKey, ClassLoader classLoader)
ResourceBundle (Bundle.properties), if the resourceKey is
prefixed with '%', else the resoure key itself gets returned.aPackage - resourceKey - classLoader - Copyright © 2012–2014 Drombler. All rights reserved.