|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.brains2b.util.LocaleHelper
A function library giving some extra help dealing with java.util.Locale.
Constructor Summary | |
LocaleHelper()
|
Method Summary | |
static java.util.Locale |
getLocale(java.lang.String localeAbbr)
gets Locale from a String representing a Locale |
static boolean |
isCountry(java.lang.String isoLang)
Determines if a two letter combination is a valid ISO country code. |
static boolean |
isLanguage(java.lang.String isoLang)
Determines if a two letter combination is a valid ISO language code. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LocaleHelper()
Method Detail |
public static final java.util.Locale getLocale(java.lang.String localeAbbr)
the String has the form of language_country as used by ResourceBundles and should comply to the two letter ISO definitions of language and country.
If the String default is supplied an empty Locale is returned.
localeAbbr
- String, the String representing a locale. This function is case
insensitive.
public static final boolean isLanguage(java.lang.String isoLang)
isoLang
- String, the two letter String combination.
public static final boolean isCountry(java.lang.String isoLang)
isoLang
- String, the two letter String combination.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |