|
Oracle | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.compoze.util.LocaleUtility
public class LocaleUtility
LocaleUtility helps enumerate and search the available locales.
Constructor Summary | |
---|---|
LocaleUtility()
|
Method Summary | |
---|---|
static java.lang.String[] |
getAvailableLocaleNames()
Gets the display names of the available locales. |
static java.lang.String[] |
getAvailableLocaleNames(java.util.Locale locale)
Gets the display names of the available locales. |
static java.util.Locale |
getByDisplayName(java.lang.String sDisplayName)
Get a locale by its display name. |
static java.util.Locale |
getByDisplayName(java.lang.String sDisplayName,
java.util.Locale locale)
Get a locale by its display name. |
static void |
main(java.lang.String[] args)
Exerciser. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocaleUtility()
Method Detail |
---|
public static java.lang.String[] getAvailableLocaleNames()
public static java.lang.String[] getAvailableLocaleNames(java.util.Locale locale)
locale
- the locale to get the display names in
public static java.util.Locale getByDisplayName(java.lang.String sDisplayName)
sDisplayName
- the display name of the locale to search for
public static java.util.Locale getByDisplayName(java.lang.String sDisplayName, java.util.Locale locale)
sDisplayName
- the display name of the locale to search forlocale
- the locale of the display name
public static void main(java.lang.String[] args)
args
- arguments
|
Oracle | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |