|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.abdera.i18n.text.Localizer
public final class Localizer
Wraps ResourceBundle with a couple of additional, useful methods. Used for l10n
Constructor Summary | |
---|---|
Localizer()
|
|
Localizer(Locale locale,
ClassLoader loader)
|
|
Localizer(ResourceBundle bundle)
|
|
Localizer(ResourceBundle bundle,
Locale locale)
|
|
Localizer(String bundle)
|
|
Localizer(String bundle,
Locale locale)
|
Method Summary | |
---|---|
static String |
format(String key,
Object... args)
Deprecated. |
String |
formatValue(String key,
Object... args)
Deprecated. |
static String |
get(String key)
|
static String |
get(String key,
String defaultValue)
|
static Localizer |
getInstance()
|
Locale |
getLocale()
|
String |
getValue(String key)
|
String |
getValue(String key,
String defaultValue)
|
static void |
setInstance(Localizer localizer)
|
static String |
sprintf(String key,
Object... args)
|
String |
sprintfValue(String key,
Object... args)
Use the JDK 1.5 sprintf style Formatter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Localizer()
public Localizer(Locale locale, ClassLoader loader)
public Localizer(String bundle)
public Localizer(String bundle, Locale locale)
public Localizer(ResourceBundle bundle)
public Localizer(ResourceBundle bundle, Locale locale)
Method Detail |
---|
public static Localizer getInstance()
public static void setInstance(Localizer localizer)
public static String get(String key)
public static String get(String key, String defaultValue)
public static String format(String key, Object... args)
public static String sprintf(String key, Object... args)
public Locale getLocale()
public String getValue(String key)
public String getValue(String key, String defaultValue)
public String formatValue(String key, Object... args)
springfValue
public String sprintfValue(String key, Object... args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |