public class Messages extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getString(Locale locale,
String key)
Gets a string for the given key from the resource bundle with the given locale.
|
static String |
getString(String key)
Gets a string for the given key from the resource bundle with the default-locale.
|
public static String getString(String key)
key - the key for the desired stringNullPointerException - if key is nullClassCastException - if the object found for the given key is not a stringpublic static String getString(Locale locale, String key)
null, then the default-locale is used.locale - the resource-bundle with the wanted localekey - the key for the desired stringNullPointerException - if key is nullClassCastException - if the object found for the given key is not a stringCopyright © 2004–2022 Web-Legacy. All rights reserved.