Package | Description |
---|---|
java.lang | |
java.text | |
java.util |
Modifier and Type | Method and Description |
---|---|
String |
String.toLowerCase(Locale locale) |
String |
String.toUpperCase(Locale locale) |
Modifier and Type | Method and Description |
---|---|
static Locale[] |
BreakIterator.getAvailableLocales() |
static Locale[] |
Collator.getAvailableLocales() |
static Locale[] |
DateFormat.getAvailableLocales()
Gets the list of installed locales which support
DateFormat . |
static Locale[] |
NumberFormat.getAvailableLocales() |
Locale |
MessageFormat.getLocale() |
Modifier and Type | Method and Description |
---|---|
static BreakIterator |
BreakIterator.getCharacterInstance(Locale loc) |
static NumberFormat |
NumberFormat.getCurrencyInstance(Locale loc) |
static DateFormat |
DateFormat.getDateInstance(int style,
Locale locale)
Returns a
DateFormat instance for formatting and parsing dates in
the specified style for the specified locale. |
static DateFormat |
DateFormat.getDateTimeInstance(int dateStyle,
int timeStyle,
Locale locale)
Returns a
DateFormat instance for formatting and parsing dates
and time values in the specified styles for the specified locale. |
static Collator |
Collator.getInstance(Locale loc) |
static NumberFormat |
NumberFormat.getInstance(Locale loc) |
static BreakIterator |
BreakIterator.getLineInstance(Locale loc) |
static NumberFormat |
NumberFormat.getNumberInstance(Locale loc) |
static NumberFormat |
NumberFormat.getPercentInstance(Locale loc) |
static BreakIterator |
BreakIterator.getSentenceInstance(Locale loc) |
static DateFormat |
DateFormat.getTimeInstance(int style,
Locale loc)
Returns a
DateFormat instance for formatting and parsing time
values in the specified style for the specified locale. |
static BreakIterator |
BreakIterator.getWordInstance(Locale loc) |
void |
MessageFormat.setLocale(Locale loc) |
Constructor and Description |
---|
DateFormatSymbols(Locale loc) |
DecimalFormatSymbols(Locale loc) |
MessageFormat(String pattern,
Locale locale) |
SimpleDateFormat(String pattern,
Locale loc) |
Modifier and Type | Field and Description |
---|---|
static Locale |
Locale.CANADA |
static Locale |
Locale.CANADA_FRENCH |
static Locale |
Locale.CHINA |
static Locale |
Locale.CHINESE |
static Locale |
Locale.ENGLISH |
static Locale |
Locale.FRANCE |
static Locale |
Locale.FRENCH |
static Locale |
Locale.GERMAN |
static Locale |
Locale.GERMANY |
static Locale |
Locale.ITALIAN |
static Locale |
Locale.ITALY |
static Locale |
Locale.JAPAN |
static Locale |
Locale.JAPANESE |
static Locale |
Locale.KOREA |
static Locale |
Locale.KOREAN |
static Locale |
Locale.PRC |
static Locale |
Locale.SIMPLIFIED_CHINESE |
static Locale |
Locale.TAIWAN |
static Locale |
Locale.TRADITIONAL_CHINESE |
static Locale |
Locale.UK |
static Locale |
Locale.US |
Modifier and Type | Method and Description |
---|---|
static Locale[] |
Calendar.getAvailableLocales()
Gets the list of installed Locales which support Calendar.
|
static Locale[] |
Locale.getAvailableLocales() |
static Locale |
Locale.getDefault() |
Locale |
ResourceBundle.getLocale() |
Modifier and Type | Method and Description |
---|---|
static ResourceBundle |
ResourceBundle.getBundle(String baseName,
Locale locale) |
static ResourceBundle |
ResourceBundle.getBundle(String baseName,
Locale locale,
ClassLoader loader) |
String |
Locale.getDisplayCountry(Locale inLocale) |
String |
Locale.getDisplayLanguage(Locale inLocale) |
String |
TimeZone.getDisplayName(boolean daylight,
int style,
Locale loc) |
String |
Locale.getDisplayName(Locale inLocale) |
String |
TimeZone.getDisplayName(Locale loc) |
String |
Locale.getDisplayVariant(Locale inLocale) |
static Calendar |
Calendar.getInstance(Locale locale)
Constructs a new instance of the Calendar subclass appropriate for the
specified Locale.
|
static Currency |
Currency.getInstance(Locale locale) |
static Calendar |
Calendar.getInstance(TimeZone timezone,
Locale locale)
Constructs a new instance of the Calendar subclass appropriate for the
specified Locale.
|
String |
Currency.getSymbol(Locale locale) |
static void |
Locale.setDefault(Locale defLoc) |
Constructor and Description |
---|
Calendar(TimeZone timezone,
Locale locale)
Initializes this Calendar instance using the specified TimeZone and
Locale.
|
GregorianCalendar(Locale locale)
Constructs a new GregorianCalendar initialized to the current date and
time and using the specified Locale.
|
GregorianCalendar(TimeZone timezone,
Locale locale)
Constructs a new GregorianCalendar initialized to the current date and
time and using the specified TimeZone and Locale.
|