|
|||||||||
| Home >> All >> java >> [ util overview ] | PREV NEXT | ||||||||
Uses of Class
java.util.Locale
| Uses of Locale in java.util |
| Fields in java.util declared as Locale | |
static Locale |
Locale.ENGLISH
Locale which represents the English language. |
static Locale |
Locale.FRENCH
Locale which represents the French language. |
static Locale |
Locale.GERMAN
Locale which represents the German language. |
static Locale |
Locale.ITALIAN
Locale which represents the Italian language. |
static Locale |
Locale.JAPANESE
Locale which represents the Japanese language. |
static Locale |
Locale.KOREAN
Locale which represents the Korean language. |
static Locale |
Locale.CHINESE
Locale which represents the Chinese language. |
static Locale |
Locale.SIMPLIFIED_CHINESE
Locale which represents the Chinese language as used in China. |
static Locale |
Locale.TRADITIONAL_CHINESE
Locale which represents the Chinese language as used in Taiwan. |
static Locale |
Locale.FRANCE
Locale which represents France. |
static Locale |
Locale.GERMANY
Locale which represents Germany. |
static Locale |
Locale.ITALY
Locale which represents Italy. |
static Locale |
Locale.JAPAN
Locale which represents Japan. |
static Locale |
Locale.KOREA
Locale which represents Korea. |
static Locale |
Locale.CHINA
Locale which represents China. |
static Locale |
Locale.PRC
Locale which represents the People's Republic of China. |
static Locale |
Locale.TAIWAN
Locale which represents Taiwan. |
static Locale |
Locale.UK
Locale which represents the United Kingdom. |
static Locale |
Locale.US
Locale which represents the United States. |
static Locale |
Locale.CANADA
Locale which represents the English speaking portion of Canada. |
static Locale |
Locale.CANADA_FRENCH
Locale which represents the French speaking portion of Canada. |
private static Locale[] |
Locale.availableLocales
Array storing all available locales. |
private static Locale |
Locale.defaultLocale
The default locale. |
private Locale |
ResourceBundle.locale
The locale of this resource bundle. |
private static Locale |
ResourceBundle.lastDefaultLocale
The last default Locale we saw. |
private static Locale |
ResourceBundle.emptyLocale
The `empty' locale is created once in order to optimize tryBundle(). |
(package private) Locale |
ResourceBundle.BundleKey.locale
|
| Methods in java.util that return Locale | |
private static Locale |
Locale.getLocale(java.lang.String language)
Retrieves the locale with the specified language from the cache. |
private static Locale |
Locale.getLocale(java.lang.String language,
java.lang.String country)
Retrieves the locale with the specified language and country from the cache. |
private static Locale |
Locale.getLocale(java.lang.String language,
java.lang.String country,
java.lang.String variant)
Retrieves the locale with the specified language, country and variant from the cache. |
static Locale |
Locale.getDefault()
Returns the default Locale. |
static Locale[] |
Locale.getAvailableLocales()
Returns the list of available locales. |
Locale |
ResourceBundle.getLocale()
Return the actual locale of this bundle. |
static Locale[] |
Calendar.getAvailableLocales()
Gets the set of locales for which a Calendar is available. |
| Methods in java.util with parameters of type Locale | |
static void |
Locale.setDefault(Locale newLocale)
Changes the default locale. |
java.lang.String |
Locale.getDisplayLanguage(Locale inLocale)
Gets the name of the language specified by this locale, in a form suitable for display to the user. |
java.lang.String |
Locale.getDisplayCountry(Locale inLocale)
Gets the name of the country specified by this locale, in a form suitable for display to the user. |
java.lang.String |
Locale.getDisplayVariant(Locale inLocale)
Gets the name of the variant specified by this locale, in a form suitable for display to the user. |
java.lang.String |
Locale.getDisplayName(Locale locale)
Gets all local components suitable for display to the user, formatted for a specified locale. |
static ResourceBundle |
ResourceBundle.getBundle(java.lang.String baseName,
Locale locale)
Get the appropriate ResourceBundle for the given locale. |
static ResourceBundle |
ResourceBundle.getBundle(java.lang.String baseName,
Locale locale,
java.lang.ClassLoader classLoader)
Get the appropriate ResourceBundle for the given locale. |
private static ResourceBundle |
ResourceBundle.tryBundle(java.lang.String baseName,
Locale locale,
java.lang.ClassLoader classLoader,
boolean wantBase)
Tries to load a the bundle for a given locale, also loads the backup locales with the same language. |
(package private) void |
ResourceBundle.BundleKey.set(java.lang.String s,
Locale l,
java.lang.ClassLoader cl)
|
java.lang.String |
TimeZone.getDisplayName(Locale locale)
This method returns a string name of the time zone suitable for displaying to the user. |
java.lang.String |
TimeZone.getDisplayName(boolean dst,
int style,
Locale locale)
This method returns a string name of the time zone suitable for displaying to the user. |
private static ResourceBundle |
Calendar.getBundle(Locale locale)
get resource bundle: The resources should be loaded via this method only. |
static Calendar |
Calendar.getInstance(Locale locale)
Creates a calendar representing the actual time, using the default time zone and the given locale. |
static Calendar |
Calendar.getInstance(TimeZone zone,
Locale locale)
Creates a calendar representing the actual time, using the given time zone and locale. |
static Currency |
Currency.getInstance(Locale locale)
Builds a new currency instance for this locale. |
java.lang.String |
Currency.getSymbol(Locale locale)
This method returns the symbol which precedes or follows a value in this particular currency. |
| Constructors in java.util with parameters of type Locale | |
ResourceBundle.BundleKey(java.lang.String s,
Locale l,
java.lang.ClassLoader cl)
|
|
Calendar(TimeZone zone,
Locale locale)
Constructs a new Calendar with the given time zone and the given locale. |
|
GregorianCalendar(Locale locale)
Constructs a new GregorianCalender representing the current time, using the default time zone and the specified locale. |
|
GregorianCalendar(TimeZone zone,
Locale locale)
Constructs a new GregorianCalender representing the current time with the given time zone and the given locale. |
|
GregorianCalendar(TimeZone zone,
Locale locale,
boolean unused)
Common constructor that all constructors should call. |
|
Currency(Locale loc)
Constructor to create a Currency object
for a particular Locale. |
|
|
|||||||||
| Home >> All >> java >> [ util overview ] | PREV NEXT | ||||||||