Uses of Class
java.util.Locale
| Package | Description |
|---|---|
| java.io | |
| java.lang | |
| java.nio.charset | |
| java.text | |
| java.text.spi | |
| java.util | |
| java.util.spi | |
| javax.xml.datatype | |
| libcore.icu | |
| org.apache.http |
The core interfaces and classes of the HTTP components.
|
| org.apache.http.impl |
Default implementations for interfaces in
org.apache.http. |
| org.apache.http.message |
A selection of HTTP
message
implementations. |
| org.apache.xml.res | |
| org.apache.xml.utils |
Implementation of Xalan utility classes.
|
| org.apache.xml.utils.res | |
| org.apache.xpath.objects |
Implementation of XPath polymorphic type objects -- this package will grow
as XPath objects are expanded to support XML Schema data types.
|
| org.xml.sax | |
| org.xml.sax.helpers |
-
Uses of Locale in java.io
Methods in java.io with parameters of type Locale Modifier and Type Method Description PrintStreamPrintStream. format(Locale l, String format, Object... args)Writes a string formatted by an intermediateFormatterto this stream using the specified locale, format string and arguments.PrintWriterPrintWriter. format(Locale l, String format, Object... args)Writes a string formatted by an intermediateFormatterto the target using the specified locale, format string and arguments.PrintStreamPrintStream. printf(Locale l, String format, Object... args)Prints a formatted string.PrintWriterPrintWriter. printf(Locale l, String format, Object... args)Prints a formatted string. -
Uses of Locale in java.lang
Methods in java.lang with parameters of type Locale Modifier and Type Method Description static StringString. format(Locale locale, String format, Object... args)Returns a formatted string, using the supplied format and arguments, localized to the given locale.StringString. toLowerCase(Locale locale)Converts this string to lower case, using the rules oflocale.StringString. toUpperCase(Locale locale)Converts this this string to upper case, using the rules oflocale. -
Uses of Locale in java.nio.charset
Methods in java.nio.charset with parameters of type Locale Modifier and Type Method Description StringCharset. displayName(Locale l)Returns the name of this charset for the specified locale. -
Uses of Locale in java.text
Methods in java.text that return Locale Modifier and Type Method Description static Locale[]BreakIterator. getAvailableLocales()Returns an array of locales for which customBreakIteratorinstances are available.static Locale[]Collator. getAvailableLocales()Returns an array of locales for which customCollatorinstances are available.static Locale[]DateFormat. getAvailableLocales()Returns an array of locales for which customDateFormatinstances are available.static Locale[]DateFormatSymbols. getAvailableLocales()Returns an array of locales for which customDateFormatSymbolsinstances are available.static Locale[]DecimalFormatSymbols. getAvailableLocales()Returns an array of locales for which customDecimalFormatSymbolsinstances are available.static Locale[]NumberFormat. getAvailableLocales()Returns an array of locales for which customNumberFormatinstances are available.LocaleMessageFormat. getLocale()Returns the locale used when creating formats.Methods in java.text with parameters of type Locale Modifier and Type Method Description static BreakIteratorBreakIterator. getCharacterInstance(Locale where)Returns a new instance ofBreakIteratorto iterate over characters using the given locale.static NumberFormatNumberFormat. getCurrencyInstance(Locale locale)Returns aNumberFormatfor formatting and parsing currency values for the specified locale.static DateFormatDateFormat. getDateInstance(int style, Locale locale)Returns aDateFormatinstance for formatting and parsing dates in the specified style for the specified locale.static DateFormatDateFormat. getDateTimeInstance(int dateStyle, int timeStyle, Locale locale)Returns aDateFormatinstance for formatting and parsing dates and time values in the specified styles for the specified locale.static CollatorCollator. getInstance(Locale locale)Returns aCollatorinstance which is appropriate forlocale.static DateFormatSymbolsDateFormatSymbols. getInstance(Locale locale)Returns a newDateFormatSymbolsfor the given locale.static DecimalFormatSymbolsDecimalFormatSymbols. getInstance(Locale locale)Returns a newDecimalFormatSymbolsfor the given locale.static NumberFormatNumberFormat. getInstance(Locale locale)Returns aNumberFormatfor formatting and parsing numbers for the specified locale.static NumberFormatNumberFormat. getIntegerInstance(Locale locale)Returns aNumberFormatfor formatting and parsing integers for the specified locale.static BreakIteratorBreakIterator. getLineInstance(Locale where)Returns a new instance ofBreakIteratorto iterate over line breaks using the given locale.static NumberFormatNumberFormat. getNumberInstance(Locale locale)Returns aNumberFormatfor formatting and parsing numbers for the specified locale.static NumberFormatNumberFormat. getPercentInstance(Locale locale)Returns aNumberFormatfor formatting and parsing percentage values for the givenlocale.static BreakIteratorBreakIterator. getSentenceInstance(Locale where)Returns a new instance ofBreakIteratorto iterate over sentence-breaks using the given locale.static DateFormatDateFormat. getTimeInstance(int style, Locale locale)Returns aDateFormatinstance for formatting and parsing time values in the specified style for the specified locale.static BreakIteratorBreakIterator. getWordInstance(Locale where)Returns a new instance ofBreakIteratorto iterate over word-breaks using the given locale.voidMessageFormat. setLocale(Locale locale)Sets the locale to use when creatingFormatinstances.Constructors in java.text with parameters of type Locale Constructor Description DateFormatSymbols(Locale locale)Constructs a newDateFormatSymbolsinstance containing the symbols for the specified locale.DecimalFormatSymbols(Locale locale)Constructs a new DecimalFormatSymbols containing the symbols for the specified Locale.MessageFormat(String template, Locale locale)Constructs a newMessageFormatusing the specified pattern andlocale.SimpleDateFormat(String template, Locale locale)Constructs a newSimpleDateFormatusing the specified non-localized pattern and theDateFormatSymbolsandCalendarfor the specified locale. -
Uses of Locale in java.text.spi
Methods in java.text.spi with parameters of type Locale Modifier and Type Method Description abstract BreakIteratorBreakIteratorProvider. getCharacterInstance(Locale locale)Returns an instance ofBreakIteratorfor character breaks in the given locale.abstract NumberFormatNumberFormatProvider. getCurrencyInstance(Locale locale)Returns an instance ofNumberFormatthat formats monetary values for the given locale.abstract DateFormatDateFormatProvider. getDateInstance(int style, Locale locale)Returns an instance ofDateFormatthat formats dates in the given style for the given locale.abstract DateFormatDateFormatProvider. getDateTimeInstance(int dateStyle, int timeStyle, Locale locale)Returns an instance ofDateFormatthat formats dates and times in the given style for the given locale.abstract CollatorCollatorProvider. getInstance(Locale locale)Returns an instance ofCollatorfor the given locale.abstract DateFormatSymbolsDateFormatSymbolsProvider. getInstance(Locale locale)Returns an instance ofDateFormatSymbolsfor the given locale.abstract DecimalFormatSymbolsDecimalFormatSymbolsProvider. getInstance(Locale locale)Returns an instance ofDecimalFormatSymbolsfor the given locale.abstract NumberFormatNumberFormatProvider. getIntegerInstance(Locale locale)Returns an instance ofNumberFormatthat formats integer values for the given locale.abstract BreakIteratorBreakIteratorProvider. getLineInstance(Locale locale)Returns an instance ofBreakIteratorfor line breaks in the given locale.abstract NumberFormatNumberFormatProvider. getNumberInstance(Locale locale)Returns an instance ofNumberFormatclass for general use in the given locale.abstract NumberFormatNumberFormatProvider. getPercentInstance(Locale locale)Returns an instance ofNumberFormatclass that formats percentage values for the given locale.abstract BreakIteratorBreakIteratorProvider. getSentenceInstance(Locale locale)Returns an instance ofBreakIteratorfor sentence breaks in the given locale.abstract DateFormatDateFormatProvider. getTimeInstance(int style, Locale locale)Returns an instance ofDateFormatthat formats times in the given style for the given locale.abstract BreakIteratorBreakIteratorProvider. getWordInstance(Locale locale)Returns an instance ofBreakIteratorfor word breaks in the given locale. -
Uses of Locale in java.util
Fields in java.util declared as Locale Modifier and Type Field Description static LocaleLocale. CANADALocale constant for en_CA.static LocaleLocale. CANADA_FRENCHLocale constant for fr_CA.static LocaleLocale. CHINALocale constant for zh_CN.static LocaleLocale. CHINESELocale constant for zh.static LocaleLocale. ENGLISHLocale constant for en.static LocaleLocale. FRANCELocale constant for fr_FR.static LocaleLocale. FRENCHLocale constant for fr.static LocaleLocale. GERMANLocale constant for de.static LocaleLocale. GERMANYLocale constant for de_DE.static LocaleLocale. ITALIANLocale constant for it.static LocaleLocale. ITALYLocale constant for it_IT.static LocaleLocale. JAPANLocale constant for ja_JP.static LocaleLocale. JAPANESELocale constant for ja.static LocaleLocale. KOREALocale constant for ko_KR.static LocaleLocale. KOREANLocale constant for ko.static LocaleLocale. PRCLocale constant for zh_CN.static LocaleLocale. ROOTLocale constant for the root locale.static LocaleLocale. SIMPLIFIED_CHINESELocale constant for zh_CN.static LocaleLocale. TAIWANLocale constant for zh_TW.static LocaleLocale. TRADITIONAL_CHINESELocale constant for zh_TW.static LocaleLocale. UKLocale constant for en_GB.static LocaleLocale. USLocale constant for en_US.Methods in java.util that return Locale Modifier and Type Method Description static Locale[]Calendar. getAvailableLocales()Returns an array of locales for which customCalendarinstances are available.static Locale[]Locale. getAvailableLocales()Returns the system's installed locales.static LocaleLocale. getDefault()Returns the user's preferred locale.LocaleResourceBundle.Control. getFallbackLocale(String baseName, Locale locale)Returns the fallback locale forbaseNameinlocale.LocaleResourceBundle. getLocale()Gets theLocaleof thisResourceBundle.LocaleFormatter. locale()Returns theLocaleof theFormatter.LocaleScanner. locale()Returns theLocaleof thisScanner.Methods in java.util that return types with arguments of type Locale Modifier and Type Method Description List<Locale>ResourceBundle.Control. getCandidateLocales(String baseName, Locale locale)Returns a list of candidate locales according tobaseNameinlocale.Methods in java.util with parameters of type Locale Modifier and Type Method Description FormatterFormatter. format(Locale l, String format, Object... args)Writes a formatted string to the output destination of theFormatter.static ResourceBundleResourceBundle. getBundle(String bundleName, Locale locale)Finds the namedResourceBundlefor the specifiedLocaleand the callerClassLoader.static ResourceBundleResourceBundle. getBundle(String bundleName, Locale locale, ClassLoader loader)Finds the named resource bundle for the specifiedLocaleandClassLoader.static ResourceBundleResourceBundle. getBundle(String baseName, Locale targetLocale, ClassLoader loader, ResourceBundle.Control control)Finds the named resource bundle for the specified base name and control.static ResourceBundleResourceBundle. getBundle(String baseName, Locale targetLocale, ResourceBundle.Control control)Finds the named resource bundle for the specified base name and control.List<Locale>ResourceBundle.Control. getCandidateLocales(String baseName, Locale locale)Returns a list of candidate locales according tobaseNameinlocale.StringLocale. getDisplayCountry(Locale locale)Returns the name of this locale's country, localized tolocale.StringLocale. getDisplayLanguage(Locale locale)Returns the name of this locale's language, localized tolocale.StringCalendar. getDisplayName(int field, int style, Locale locale)Returns a human-readable string for the value offieldusing the given style and locale.StringCurrency. getDisplayName(Locale locale)Returns the localized name of this currency in the givenlocale.StringLocale. getDisplayName(Locale locale)Returns this locale's language name, country name, and variant, localized tolocale.StringTimeZone. getDisplayName(boolean daylightTime, int style, Locale locale)StringTimeZone. getDisplayName(Locale locale)Equivalent togetDisplayName(false, TimeZone.LONG, locale).Map<String,Integer>Calendar. getDisplayNames(int field, int style, Locale locale)Returns a map of human-readable strings to corresponding values, for the given field, style, and locale.StringLocale. getDisplayVariant(Locale locale)Returns the full variant name in the specifiedLocalefor the variant code of thisLocale.LocaleResourceBundle.Control. getFallbackLocale(String baseName, Locale locale)Returns the fallback locale forbaseNameinlocale.static CalendarCalendar. getInstance(Locale locale)Constructs a new instance of theCalendarsubclass appropriate for the givenLocaleand defaultTimeZone, set to the current date and time.static CalendarCalendar. getInstance(TimeZone timezone, Locale locale)Constructs a new instance of theCalendarsubclass appropriate for the givenLocaleand givenTimeZone, set to the current date and time.static CurrencyCurrency. getInstance(Locale locale)Returns theCurrencyinstance for thisLocale's country.StringCurrency. getSymbol(Locale locale)Returns the localized currency symbol for this currency inlocale.longResourceBundle.Control. getTimeToLive(String baseName, Locale locale)Returns the time to live of the ResourceBundlebaseNameinlocale, default is TTL_NO_EXPIRATION_CONTROL.booleanResourceBundle.Control. needsReload(String baseName, Locale locale, String format, ClassLoader loader, ResourceBundle bundle, long loadTime)Returns true if the ResourceBundle needs to reload.ResourceBundleResourceBundle.Control. newBundle(String baseName, Locale locale, String format, ClassLoader loader, boolean reload)Returns a new ResourceBundle.static voidLocale. setDefault(Locale locale)Overrides the default locale.StringResourceBundle.Control. toBundleName(String baseName, Locale locale)a utility method to answer the name of a resource bundle according to the given base name and localeScannerScanner. useLocale(Locale l)Sets theLocaleof thisScannerto a specifiedLocale.Constructors in java.util with parameters of type Locale Constructor Description Calendar(TimeZone timezone, Locale locale)Constructs aCalendarinstance using the givenTimeZoneandLocale.Formatter(File file, String csn, Locale l)Constructs aFormatterwith the givenLocaleand charset, and whose output is written to the specifiedFile.Formatter(OutputStream os, String csn, Locale l)Constructs aFormatterwith the givenLocaleand charset, and whose output is written to the specifiedOutputStream.Formatter(Appendable a, Locale l)Constructs aFormatterwith the specifiedLocaleand whose output will be written to the specifiedAppendable.Formatter(String fileName, String csn, Locale l)Constructs aFormatterwith the givenLocaleand charset, and whose output is written to the specified file.Formatter(Locale l)Constructs aFormatterwith the specifiedLocale.GregorianCalendar(Locale locale)Constructs a newGregorianCalendarinitialized to the current date and time and using the specifiedLocaleand the defaultTimeZone.GregorianCalendar(TimeZone timezone, Locale locale)Constructs a newGregorianCalendarinitialized to the current date and time and using the specifiedTimeZoneandLocale. -
Uses of Locale in java.util.spi
Methods in java.util.spi that return Locale Modifier and Type Method Description abstract Locale[]LocaleServiceProvider. getAvailableLocales()Returns all locales for which this locale service provider has localized objects or names.Methods in java.util.spi with parameters of type Locale Modifier and Type Method Description abstract StringLocaleNameProvider. getDisplayCountry(String countryCode, Locale locale)Returns the localized name for the given ISO 3166 country code.abstract StringLocaleNameProvider. getDisplayLanguage(String languageCode, Locale locale)Returns the localized name for the given ISO 639 language code.abstract StringTimeZoneNameProvider. getDisplayName(String id, boolean daylight, int style, Locale locale)Returns the localized name for the given time zone in the given locale.abstract StringLocaleNameProvider. getDisplayVariant(String variantCode, Locale locale)Returns the localized name for the given variant code.abstract StringCurrencyNameProvider. getSymbol(String code, Locale locale)Returns the localized currency symbol for the given currency code. -
Uses of Locale in javax.xml.datatype
Methods in javax.xml.datatype with parameters of type Locale Modifier and Type Method Description abstract GregorianCalendarXMLGregorianCalendar. toGregorianCalendar(TimeZone timezone, Locale aLocale, XMLGregorianCalendar defaults)Convert thisXMLGregorianCalendaralong with provided parameters to aGregorianCalendarinstance. -
Uses of Locale in libcore.icu
Methods in libcore.icu that return Locale Modifier and Type Method Description static Locale[]ICU. getAvailableBreakIteratorLocales()static Locale[]ICU. getAvailableCalendarLocales()static Locale[]ICU. getAvailableCollatorLocales()static Locale[]ICU. getAvailableDateFormatLocales()static Locale[]ICU. getAvailableDateFormatSymbolsLocales()static Locale[]ICU. getAvailableDecimalFormatSymbolsLocales()static Locale[]ICU. getAvailableLocales()static Locale[]ICU. getAvailableNumberFormatLocales()static LocaleICU. localeFromString(String localeName)Returns the appropriateLocalegiven aStringof the form returned bytoString.static Locale[]ICU. localesFromStrings(String[] localeNames)Methods in libcore.icu with parameters of type Locale Modifier and Type Method Description AlphabeticIndexAlphabeticIndex. addLabels(Locale locale)Adds the index characters from the given locale to the index.protected String[][]TimeZoneNames.ZoneStringsCache. create(Locale locale)static NativePluralRulesNativePluralRules. forLocale(Locale locale)static String[]TimeZoneNames. forLocale(Locale locale)Returns an array containing the time zone ids in use in the country corresponding to the given locale.static StringDateIntervalFormat. formatDateRange(Locale locale, TimeZone tz, long startMs, long endMs, int flags)static LocaleDataLocaleData. get(Locale locale)Returns a shared LocaleData for the given locale.static NativeBreakIteratorNativeBreakIterator. getCharacterInstance(Locale where)static NativeBreakIteratorNativeBreakIterator. getLineInstance(Locale where)static NativeBreakIteratorNativeBreakIterator. getSentenceInstance(Locale where)static NativeBreakIteratorNativeBreakIterator. getWordInstance(Locale where)static String[][]TimeZoneNames. getZoneStrings(Locale locale)Returns an array of time zone strings, as used by DateFormatSymbols.getZoneStrings.Constructors in libcore.icu with parameters of type Locale Constructor Description AlphabeticIndex(Locale locale)Creates a new AlphabeticIndex for the given locale.RuleBasedCollatorICU(Locale locale) -
Uses of Locale in org.apache.http
Methods in org.apache.http that return Locale Modifier and Type Method Description LocaleHttpResponse. getLocale()Obtains the locale of this response. -
Uses of Locale in org.apache.http.impl
Methods in org.apache.http.impl that return Locale Modifier and Type Method Description protected LocaleDefaultHttpResponseFactory. determineLocale(HttpContext context)Determines the locale of the response.Methods in org.apache.http.impl with parameters of type Locale Modifier and Type Method Description StringEnglishReasonPhraseCatalog. getReason(int status, Locale loc)Obtains the reason phrase for a status code. -
Uses of Locale in org.apache.http.message
Methods in org.apache.http.message that return Locale Modifier and Type Method Description LocaleBasicHttpResponse. getLocale()Methods in org.apache.http.message with parameters of type Locale Modifier and Type Method Description voidBasicHttpResponse. setLocale(Locale loc)Constructors in org.apache.http.message with parameters of type Locale Constructor Description BasicHttpResponse(StatusLine statusline, ReasonPhraseCatalog catalog, Locale locale)Creates a new response. -
Uses of Locale in org.apache.xml.res
Fields in org.apache.xml.res declared as Locale Modifier and Type Field Description protected LocaleXMLMessages. fLocaleThe local object to use.Methods in org.apache.xml.res that return Locale Modifier and Type Method Description LocaleXMLMessages. getLocale()Get the Locale object that is being used.Methods in org.apache.xml.res with parameters of type Locale Modifier and Type Method Description voidXMLMessages. setLocale(Locale locale)Set the Locale object to use. -
Uses of Locale in org.apache.xml.utils
Methods in org.apache.xml.utils with parameters of type Locale Modifier and Type Method Description XMLStringXMLString. toLowerCase(Locale locale)Converts all of the characters in thisStringto lower case using the rules of the givenLocale.XMLStringXMLStringDefault. toLowerCase(Locale locale)Converts all of the characters in thisStringto lower case using the rules of the givenLocale.XMLStringXMLString. toUpperCase(Locale locale)Converts all of the characters in thisStringto upper case using the rules of the given locale.XMLStringXMLStringDefault. toUpperCase(Locale locale)Converts all of the characters in thisStringto upper case using the rules of the given locale. -
Uses of Locale in org.apache.xml.utils.res
Methods in org.apache.xml.utils.res with parameters of type Locale Modifier and Type Method Description static XResourceBundleXResourceBundle. loadResourceBundle(String className, Locale locale)Return a named ResourceBundle for a particular locale. -
Uses of Locale in org.apache.xpath.objects
Methods in org.apache.xpath.objects with parameters of type Locale Modifier and Type Method Description XMLStringXString. toLowerCase(Locale locale)Converts all of the characters in thisStringto lower case using the rules of the givenLocale.XMLStringXString. toUpperCase(Locale locale)Converts all of the characters in thisStringto upper case using the rules of the given locale. -
Uses of Locale in org.xml.sax
Methods in org.xml.sax with parameters of type Locale Modifier and Type Method Description voidParser. setLocale(Locale locale)Deprecated.Allow an application to request a locale for errors and warnings. -
Uses of Locale in org.xml.sax.helpers
Methods in org.xml.sax.helpers with parameters of type Locale Modifier and Type Method Description voidXMLReaderAdapter. setLocale(Locale locale)Set the locale for error reporting.