Uses of Class
java.util.Locale
-
Packages that use Locale Package Description com.sun.java.accessibility.util Provides a collection of interfaces and classes that compose the Java Accessibility Utilities.java.applet Provides the classes necessary to create an applet and the classes an applet uses to communicate with its applet context.java.awt Contains all of the classes for creating user interfaces and for painting graphics and images.java.awt.im Provides classes and interfaces for the input method framework.java.awt.im.spi Provides interfaces that enable the development of input methods that can be used with any Java runtime environment.java.beans.beancontext Provides classes and interfaces relating to bean context.java.io Provides for system input and output through data streams, serialization and the file system.java.lang Provides classes that are fundamental to the design of the Java programming language.java.nio.charset Defines charsets, decoders, and encoders, for translating between bytes and Unicode characters.java.text Provides classes and interfaces for handling text, dates, numbers, and messages in a manner independent of natural languages.java.text.spi Service provider classes for the classes in the java.text package.java.time The main API for dates, times, instants, and durations.java.time.chrono Generic API for calendar systems other than the default ISO.java.time.format Provides classes to print and parse dates and times.java.time.temporal Access to date and time using fields and units, and date time adjusters.java.util Contains the collections framework, some internationalization support classes, a service loader, properties, random number generation, string parsing and scanning classes, base64 encoding and decoding, a bit array, and several miscellaneous utility classes.java.util.spi Service provider classes for the classes in the java.util package.javax.accessibility Defines a contract between user-interface components and an assistive technology that provides access to those components.javax.annotation.processing Facilities for declaring annotation processors and for allowing annotation processors to communicate with an annotation processing tool environment.javax.imageio The main package of the Java Image I/O API.javax.imageio.metadata A package of the Java Image I/O API dealing with reading and writing metadata.javax.imageio.plugins.bmp Package containing the public classes used by the built-in BMP plug-in.javax.imageio.plugins.jpeg Classes supporting the built-in JPEG plug-in.javax.imageio.spi A package of the Java Image I/O API containing the plug-in interfaces for readers, writers, transcoders, and streams, and a runtime registry.javax.print.attribute Provides classes and interfaces that describe the types of Java™ Print Service attributes and how they can be collected into attribute sets.javax.print.attribute.standard Packagejavax.print.attribute.standardcontains classes for specific printing attributes.javax.security.auth.callback This package provides the classes necessary for services to interact with applications in order to retrieve information (authentication data including usernames or passwords, for example) or to display information (error and warning messages, for example).javax.swing Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.javax.tools Provides interfaces for tools which can be invoked from a program, for example, compilers.javax.xml.datatype Defines XML/Java Type Mappings.jdk.javadoc.doclet The Doclet API provides an environment which, in conjunction with the Language Model API and Compiler Tree API, allows clients to inspect the source-level structures of programs and libraries, including API comments embedded in the source.jdk.jshell Provides interfaces for creating tools, such as a Read-Eval-Print Loop (REPL), which interactively evaluate "snippets" of Java programming language code.jdk.jshell.tool Provides a mechanism to launch an instance of a Java™ shell tool.org.xml.sax Provides the core SAX APIs.org.xml.sax.helpers Provides helper classes, including support for bootstrapping SAX-based applications. -
-
Uses of Locale in com.sun.java.accessibility.util
Methods in com.sun.java.accessibility.util that return Locale Modifier and Type Method Description LocaleTranslator. getLocale()Gets theLocaleof the component. -
Uses of Locale in java.applet
Methods in java.applet that return Locale Modifier and Type Method Description LocaleApplet. getLocale()Deprecated.Gets the locale of the applet. -
Uses of Locale in java.awt
Methods in java.awt that return Locale Modifier and Type Method Description LocaleComponent.AccessibleAWTComponent. getLocale()Returns the locale of this object.LocaleComponent. getLocale()Gets the locale of this component.LocaleList.AccessibleAWTList.AccessibleAWTListChild. getLocale()Gets the locale of the component.LocaleMenuComponent.AccessibleAWTMenuComponent. getLocale()Returns the locale of this object.LocaleWindow. getLocale()Gets theLocaleobject that is associated with this window, if the locale has been set.Methods in java.awt with parameters of type Locale Modifier and Type Method Description abstract String[]GraphicsEnvironment. getAvailableFontFamilyNames(Locale l)Returns an array containing the names of all font families in thisGraphicsEnvironmentlocalized for the specified locale.StringFont. getFamily(Locale l)Returns the family name of thisFont, localized for the specified locale.StringFont. getFontName(Locale l)Returns the font face name of theFont, localized for the specified locale.static ComponentOrientationComponentOrientation. getOrientation(Locale locale)Returns the orientation that is appropriate for the given locale.voidComponent. setLocale(Locale l)Sets the locale of this component. -
Uses of Locale in java.awt.im
Methods in java.awt.im that return Locale Modifier and Type Method Description LocaleInputContext. getLocale()Returns the current locale of the current input method or keyboard layout.Methods in java.awt.im with parameters of type Locale Modifier and Type Method Description booleanInputContext. selectInputMethod(Locale locale)Attempts to select an input method or keyboard layout that supports the given locale, and returns a value indicating whether such an input method or keyboard layout has been successfully selected. -
Uses of Locale in java.awt.im.spi
Methods in java.awt.im.spi that return Locale Modifier and Type Method Description Locale[]InputMethodDescriptor. getAvailableLocales()Returns the locales supported by the corresponding input method.LocaleInputMethod. getLocale()Returns the current input locale.Methods in java.awt.im.spi with parameters of type Locale Modifier and Type Method Description StringInputMethodDescriptor. getInputMethodDisplayName(Locale inputLocale, Locale displayLanguage)Returns the user-visible name of the corresponding input method for the given input locale in the language in which the name will be displayed.ImageInputMethodDescriptor. getInputMethodIcon(Locale inputLocale)Returns an icon for the corresponding input method.booleanInputMethod. setLocale(Locale locale)Attempts to set the input locale. -
Uses of Locale in java.beans.beancontext
Fields in java.beans.beancontext declared as Locale Modifier and Type Field Description protected LocaleBeanContextSupport. localeThe current locale of this BeanContext.Methods in java.beans.beancontext that return Locale Modifier and Type Method Description LocaleBeanContextSupport. getLocale()Gets the locale for thisBeanContext.Methods in java.beans.beancontext with parameters of type Locale Modifier and Type Method Description voidBeanContextSupport. setLocale(Locale newLocale)Sets the locale of this BeanContext.Constructors in java.beans.beancontext with parameters of type Locale Constructor Description BeanContextServicesSupport(BeanContextServices peer, Locale lcle)Create an instance using the specified localeBeanContextServicesSupport(BeanContextServices peer, Locale lcle, boolean dtime)Create an instance using the specified Locale and design mode.BeanContextServicesSupport(BeanContextServices peer, Locale lcle, boolean dTime, boolean visible)Construct a BeanContextServicesSupport instanceBeanContextSupport(BeanContext peer, Locale lcle)Create an instance using the specified localeBeanContextSupport(BeanContext peer, Locale lcle, boolean dtime)Create an instance using the specified Locale and design mode.BeanContextSupport(BeanContext peer, Locale lcle, boolean dTime, boolean visible)Construct a BeanContextSupport instance -
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 formatted string to this output stream using the specified format string and arguments.PrintWriterPrintWriter. format(Locale l, String format, Object... args)Writes a formatted string to this writer using the specified format string and arguments.PrintStreamPrintStream. printf(Locale l, String format, Object... args)A convenience method to write a formatted string to this output stream using the specified format string and arguments.PrintWriterPrintWriter. printf(Locale l, String format, Object... args)A convenience method to write a formatted string to this writer using the specified format string and arguments. -
Uses of Locale in java.lang
Methods in java.lang with parameters of type Locale Modifier and Type Method Description static StringString. format(Locale l, String format, Object... args)Returns a formatted string using the specified locale, format string, and arguments.StringString. toLowerCase(Locale locale)Converts all of the characters in thisStringto lower case using the rules of the givenLocale.StringString. toUpperCase(Locale locale)Converts all of the characters in thisStringto upper case using the rules of the givenLocale. -
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 locale)Returns this charset's human-readable name for the given 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 all locales for which theget*Instancemethods of this class can return localized instances.static Locale[]Collator. getAvailableLocales()Returns an array of all locales for which thegetInstancemethods of this class can return localized instances.static Locale[]DateFormat. getAvailableLocales()Returns an array of all locales for which theget*Instancemethods of this class can return localized instances.static Locale[]DateFormatSymbols. getAvailableLocales()Returns an array of all locales for which thegetInstancemethods of this class can return localized instances.static Locale[]DecimalFormatSymbols. getAvailableLocales()Returns an array of all locales for which thegetInstancemethods of this class can return localized instances.static Locale[]NumberFormat. getAvailableLocales()Returns an array of all locales for which theget*Instancemethods of this class can return localized instances.LocaleMessageFormat. getLocale()Gets the locale that's used when creating or comparing subformats.Methods in java.text with parameters of type Locale Modifier and Type Method Description static BreakIteratorBreakIterator. getCharacterInstance(Locale locale)Returns a newBreakIteratorinstance for character breaks for the given locale.static NumberFormatNumberFormat. getCurrencyInstance(Locale inLocale)Returns a currency format for the specified locale.static DateFormatDateFormat. getDateInstance(int style, Locale aLocale)Gets the date formatter with the given formatting style for the given locale.static DateFormatDateFormat. getDateTimeInstance(int dateStyle, int timeStyle, Locale aLocale)Gets the date/time formatter with the given formatting styles for the given locale.static CollatorCollator. getInstance(Locale desiredLocale)Gets the Collator for the desired locale.static DateFormatSymbolsDateFormatSymbols. getInstance(Locale locale)Gets theDateFormatSymbolsinstance for the specified locale.static DecimalFormatSymbolsDecimalFormatSymbols. getInstance(Locale locale)Gets theDecimalFormatSymbolsinstance for the specified locale.static NumberFormatNumberFormat. getInstance(Locale inLocale)Returns a general-purpose number format for the specified locale.static NumberFormatNumberFormat. getIntegerInstance(Locale inLocale)Returns an integer number format for the specified locale.static BreakIteratorBreakIterator. getLineInstance(Locale locale)Returns a newBreakIteratorinstance for line breaks for the given locale.static NumberFormatNumberFormat. getNumberInstance(Locale inLocale)Returns a general-purpose number format for the specified locale.static NumberFormatNumberFormat. getPercentInstance(Locale inLocale)Returns a percentage format for the specified locale.static BreakIteratorBreakIterator. getSentenceInstance(Locale locale)Returns a newBreakIteratorinstance for sentence breaks for the given locale.static DateFormatDateFormat. getTimeInstance(int style, Locale aLocale)Gets the time formatter with the given formatting style for the given locale.static BreakIteratorBreakIterator. getWordInstance(Locale locale)Returns a newBreakIteratorinstance for word breaks for the given locale.voidMessageFormat. setLocale(Locale locale)Sets the locale to be used when creating or comparing subformats.Constructors in java.text with parameters of type Locale Constructor Description DateFormatSymbols(Locale locale)Construct a DateFormatSymbols object by loading format data from resources for the given locale.DecimalFormatSymbols(Locale locale)Create a DecimalFormatSymbols object for the given locale.MessageFormat(String pattern, Locale locale)Constructs a MessageFormat for the specified locale and pattern.SimpleDateFormat(String pattern, Locale locale)Constructs aSimpleDateFormatusing the given pattern and the default date format symbols for the given 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 a newBreakIteratorinstance for character breaks for the given locale.abstract NumberFormatNumberFormatProvider. getCurrencyInstance(Locale locale)Returns a newNumberFormatinstance which formats monetary values for the specified locale.abstract DateFormatDateFormatProvider. getDateInstance(int style, Locale locale)Returns a newDateFormatinstance which formats date with the given formatting style for the specified locale.abstract DateFormatDateFormatProvider. getDateTimeInstance(int dateStyle, int timeStyle, Locale locale)Returns a newDateFormatinstance which formats date and time with the given formatting style for the specified locale.abstract CollatorCollatorProvider. getInstance(Locale locale)Returns a newCollatorinstance for the specified locale.abstract DateFormatSymbolsDateFormatSymbolsProvider. getInstance(Locale locale)Returns a newDateFormatSymbolsinstance for the specified locale.abstract DecimalFormatSymbolsDecimalFormatSymbolsProvider. getInstance(Locale locale)Returns a newDecimalFormatSymbolsinstance for the specified locale.abstract NumberFormatNumberFormatProvider. getIntegerInstance(Locale locale)Returns a newNumberFormatinstance which formats integer values for the specified locale.abstract BreakIteratorBreakIteratorProvider. getLineInstance(Locale locale)Returns a newBreakIteratorinstance for line breaks for the given locale.abstract NumberFormatNumberFormatProvider. getNumberInstance(Locale locale)Returns a new general-purposeNumberFormatinstance for the specified locale.abstract NumberFormatNumberFormatProvider. getPercentInstance(Locale locale)Returns a newNumberFormatinstance which formats percentage values for the specified locale.abstract BreakIteratorBreakIteratorProvider. getSentenceInstance(Locale locale)Returns a newBreakIteratorinstance for sentence breaks for the given locale.abstract DateFormatDateFormatProvider. getTimeInstance(int style, Locale locale)Returns a newDateFormatinstance which formats time with the given formatting style for the specified locale.abstract BreakIteratorBreakIteratorProvider. getWordInstance(Locale locale)Returns a newBreakIteratorinstance for word breaks for the given locale. -
Uses of Locale in java.time
Methods in java.time with parameters of type Locale Modifier and Type Method Description StringDayOfWeek. getDisplayName(TextStyle style, Locale locale)Gets the textual representation, such as 'Mon' or 'Friday'.StringMonth. getDisplayName(TextStyle style, Locale locale)Gets the textual representation, such as 'Jan' or 'December'.StringZoneId. getDisplayName(TextStyle style, Locale locale)Gets the textual representation of the zone, such as 'British Time' or '+02:00'. -
Uses of Locale in java.time.chrono
Methods in java.time.chrono with parameters of type Locale Modifier and Type Method Description default StringChronology. getDisplayName(TextStyle style, Locale locale)Gets the textual representation of this chronology.default StringEra. getDisplayName(TextStyle style, Locale locale)Gets the textual representation of this era.StringHijrahEra. getDisplayName(TextStyle style, Locale locale)Gets the textual representation of this era.StringJapaneseEra. getDisplayName(TextStyle style, Locale locale)Gets the textual representation of this era.StringMinguoEra. getDisplayName(TextStyle style, Locale locale)Gets the textual representation of this era.StringThaiBuddhistEra. getDisplayName(TextStyle style, Locale locale)Gets the textual representation of this era.static ChronologyChronology. ofLocale(Locale locale)Obtains an instance ofChronologyfrom a locale. -
Uses of Locale in java.time.format
Methods in java.time.format that return Locale Modifier and Type Method Description LocaleDateTimeFormatter. getLocale()Gets the locale to be used during formatting.Methods in java.time.format that return types with arguments of type Locale Modifier and Type Method Description static Set<Locale>DecimalStyle. getAvailableLocales()Lists all the locales that are supported.Methods in java.time.format with parameters of type Locale Modifier and Type Method Description static StringDateTimeFormatterBuilder. getLocalizedDateTimePattern(FormatStyle dateStyle, FormatStyle timeStyle, Chronology chrono, Locale locale)Gets the formatting pattern for date and time styles for a locale and chronology.DateTimeFormatterDateTimeFormatter. localizedBy(Locale locale)Returns a copy of this formatter with localized values of the locale, calendar, region, decimal style and/or timezone, that supercede values in this formatter.static DecimalStyleDecimalStyle. of(Locale locale)Obtains the DecimalStyle for the specified locale.static DateTimeFormatterDateTimeFormatter. ofPattern(String pattern, Locale locale)Creates a formatter using the specified pattern and locale.DateTimeFormatterDateTimeFormatterBuilder. toFormatter(Locale locale)Completes this builder by creating theDateTimeFormatterusing the specified locale.DateTimeFormatterDateTimeFormatter. withLocale(Locale locale)Returns a copy of this formatter with a new locale. -
Uses of Locale in java.time.temporal
Methods in java.time.temporal with parameters of type Locale Modifier and Type Method Description default StringTemporalField. getDisplayName(Locale locale)Gets the display name for the field in the requested locale.static WeekFieldsWeekFields. of(Locale locale)Obtains an instance ofWeekFieldsappropriate for a locale. -
Uses of Locale in java.util
Fields in java.util declared as Locale Modifier and Type Field Description static LocaleLocale. CANADAUseful constant for country.static LocaleLocale. CANADA_FRENCHUseful constant for country.static LocaleLocale. CHINAUseful constant for country.static LocaleLocale. CHINESEUseful constant for language.static LocaleLocale. ENGLISHUseful constant for language.static LocaleLocale. FRANCEUseful constant for country.static LocaleLocale. FRENCHUseful constant for language.static LocaleLocale. GERMANUseful constant for language.static LocaleLocale. GERMANYUseful constant for country.static LocaleLocale. ITALIANUseful constant for language.static LocaleLocale. ITALYUseful constant for country.static LocaleLocale. JAPANUseful constant for country.static LocaleLocale. JAPANESEUseful constant for language.static LocaleLocale. KOREAUseful constant for country.static LocaleLocale. KOREANUseful constant for language.static LocaleLocale. PRCUseful constant for country.static LocaleLocale. ROOTUseful constant for the root locale.static LocaleLocale. SIMPLIFIED_CHINESEUseful constant for language.static LocaleLocale. TAIWANUseful constant for country.static LocaleLocale. TRADITIONAL_CHINESEUseful constant for language.static LocaleLocale. UKUseful constant for country.static LocaleLocale. USUseful constant for country.Methods in java.util that return Locale Modifier and Type Method Description LocaleLocale.Builder. build()Returns an instance ofLocalecreated from the fields set on this builder.static LocaleLocale. forLanguageTag(String languageTag)Returns a locale for the specified IETF BCP 47 language tag string.static Locale[]Calendar. getAvailableLocales()Returns an array of all locales for which thegetInstancemethods of this class can return localized instances.static Locale[]Locale. getAvailableLocales()Returns an array of all installed locales.static LocaleLocale. getDefault()Gets the current value of the default locale for this instance of the Java Virtual Machine.static LocaleLocale. getDefault(Locale.Category category)Gets the current value of the default locale for the specified Category for this instance of the Java Virtual Machine.LocaleResourceBundle.Control. getFallbackLocale(String baseName, Locale locale)Returns aLocaleto be used as a fallback locale for further resource bundle searches by theResourceBundle.getBundlefactory method.LocaleResourceBundle. getLocale()Returns the locale of this resource bundle.LocaleFormatter. locale()Returns the locale set by the construction of this formatter.LocaleScanner. locale()Returns this scanner's locale.static LocaleLocale. lookup(List<Locale.LanguageRange> priorityList, Collection<Locale> locales)Returns aLocaleinstance for the best-matching language tag using the lookup mechanism defined in RFC 4647.LocaleLocale. stripExtensions()Returns a copy of thisLocalewith no extensions.Methods in java.util that return types with arguments of type Locale Modifier and Type Method Description static List<Locale>Locale. filter(List<Locale.LanguageRange> priorityList, Collection<Locale> locales)Returns a list of matchingLocaleinstances using the filtering mechanism defined in RFC 4647.static List<Locale>Locale. filter(List<Locale.LanguageRange> priorityList, Collection<Locale> locales, Locale.FilteringMode mode)Returns a list of matchingLocaleinstances using the filtering mechanism defined in RFC 4647.List<Locale>ResourceBundle.Control. getCandidateLocales(String baseName, Locale locale)Returns aListofLocales as candidate locales forbaseNameandlocale.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 this object's destination using the specified locale, format string, and arguments.static ResourceBundleResourceBundle. getBundle(String baseName, Locale locale)Gets a resource bundle using the specified base name and locale, and the caller module.static ResourceBundleResourceBundle. getBundle(String baseName, Locale locale, ClassLoader loader)Gets a resource bundle using the specified base name, locale, and class loader.static ResourceBundleResourceBundle. getBundle(String baseName, Locale targetLocale, ClassLoader loader, ResourceBundle.Control control)Returns a resource bundle using the specified base name, target locale, class loader and control.static ResourceBundleResourceBundle. getBundle(String baseName, Locale targetLocale, Module module)Gets a resource bundle using the specified base name and locale on behalf of the specified module.static ResourceBundleResourceBundle. getBundle(String baseName, Locale targetLocale, ResourceBundle.Control control)Returns a resource bundle using the specified base name, target locale and control, and the caller's class loader.List<Locale>ResourceBundle.Control. getCandidateLocales(String baseName, Locale locale)Returns aListofLocales as candidate locales forbaseNameandlocale.StringLocale. getDisplayCountry(Locale inLocale)Returns a name for the locale's country that is appropriate for display to the user.StringLocale. getDisplayLanguage(Locale inLocale)Returns a name for the locale's language that is appropriate for display to the user.StringCalendar. getDisplayName(int field, int style, Locale locale)Returns the string representation of the calendarfieldvalue in the givenstyleandlocale.StringCurrency. getDisplayName(Locale locale)Gets the name that is suitable for displaying this currency for the specified locale.StringLocale. getDisplayName(Locale inLocale)Returns a name for the locale that is appropriate for display to the user.StringTimeZone. getDisplayName(boolean daylight, int style, Locale locale)Returns a name in the specifiedstyleof thisTimeZonesuitable for presentation to the user in the specifiedlocale.StringTimeZone. getDisplayName(Locale locale)Returns a long standard time name of thisTimeZonesuitable for presentation to the user in the specifiedlocale.Map<String,Integer>Calendar. getDisplayNames(int field, int style, Locale locale)Returns aMapcontaining all names of the calendarfieldin the givenstyleandlocaleand their corresponding field values.StringLocale. getDisplayScript(Locale inLocale)Returns a name for the locale's script that is appropriate for display to the user.StringLocale. getDisplayVariant(Locale inLocale)Returns a name for the locale's variant code that is appropriate for display to the user.LocaleResourceBundle.Control. getFallbackLocale(String baseName, Locale locale)Returns aLocaleto be used as a fallback locale for further resource bundle searches by theResourceBundle.getBundlefactory method.static CalendarCalendar. getInstance(Locale aLocale)Gets a calendar using the default time zone and specified locale.static CalendarCalendar. getInstance(TimeZone zone, Locale aLocale)Gets a calendar with the specified time zone and locale.static CurrencyCurrency. getInstance(Locale locale)Returns theCurrencyinstance for the country of the given locale.StringCurrency. getSymbol(Locale locale)Gets the symbol of this currency for the specified locale.longResourceBundle.Control. getTimeToLive(String baseName, Locale locale)Returns the time-to-live (TTL) value for resource bundles that are loaded under thisResourceBundle.Control.booleanResourceBundle.Control. needsReload(String baseName, Locale locale, String format, ClassLoader loader, ResourceBundle bundle, long loadTime)Determines if the expiredbundlein the cache needs to be reloaded based on the loading time given byloadTimeor some other criteria.ResourceBundleResourceBundle.Control. newBundle(String baseName, Locale locale, String format, ClassLoader loader, boolean reload)Instantiates a resource bundle for the given bundle name of the given format and locale, using the given class loader if necessary.static voidLocale. setDefault(Locale newLocale)Sets the default locale for this instance of the Java Virtual Machine.static voidLocale. setDefault(Locale.Category category, Locale newLocale)Sets the default locale for the specified Category for this instance of the Java Virtual Machine.Calendar.BuilderCalendar.Builder. setLocale(Locale locale)Sets the locale parameter to the givenlocale.Locale.BuilderLocale.Builder. setLocale(Locale locale)Resets theBuilderto match the providedlocale.StringResourceBundle.Control. toBundleName(String baseName, Locale locale)Converts the givenbaseNameandlocaleto the bundle name.ScannerScanner. useLocale(Locale locale)Sets this scanner's locale to the specified locale.Method parameters in java.util with type arguments of type Locale Modifier and Type Method Description static List<Locale>Locale. filter(List<Locale.LanguageRange> priorityList, Collection<Locale> locales)Returns a list of matchingLocaleinstances using the filtering mechanism defined in RFC 4647.static List<Locale>Locale. filter(List<Locale.LanguageRange> priorityList, Collection<Locale> locales, Locale.FilteringMode mode)Returns a list of matchingLocaleinstances using the filtering mechanism defined in RFC 4647.static LocaleLocale. lookup(List<Locale.LanguageRange> priorityList, Collection<Locale> locales)Returns aLocaleinstance for the best-matching language tag using the lookup mechanism defined in RFC 4647.Constructors in java.util with parameters of type Locale Constructor Description Calendar(TimeZone zone, Locale aLocale)Constructs a calendar with the specified time zone and locale.Formatter(File file, String csn, Locale l)Constructs a new formatter with the specified file, charset, and locale.Formatter(File file, Charset charset, Locale l)Constructs a new formatter with the specified file, charset, and locale.Formatter(OutputStream os, String csn, Locale l)Constructs a new formatter with the specified output stream, charset, and locale.Formatter(OutputStream os, Charset charset, Locale l)Constructs a new formatter with the specified output stream, charset, and locale.Formatter(Appendable a, Locale l)Constructs a new formatter with the specified destination and locale.Formatter(String fileName, String csn, Locale l)Constructs a new formatter with the specified file name, charset, and locale.Formatter(String fileName, Charset charset, Locale l)Constructs a new formatter with the specified file name, charset, and locale.Formatter(Locale l)Constructs a new formatter with the specified locale.GregorianCalendar(Locale aLocale)Constructs aGregorianCalendarbased on the current time in the default time zone with the given locale.GregorianCalendar(TimeZone zone, Locale aLocale)Constructs aGregorianCalendarbased on the current time in the given time zone with the given locale. -
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 an array of all locales for which this locale service provider can provide localized objects or names.Methods in java.util.spi with parameters of type Locale Modifier and Type Method Description ResourceBundleAbstractResourceBundleProvider. getBundle(String baseName, Locale locale)Returns aResourceBundlefor the givenbaseNameandlocale.ResourceBundleResourceBundleProvider. getBundle(String baseName, Locale locale)Returns aResourceBundlefor the given bundle name and locale.abstract StringLocaleNameProvider. getDisplayCountry(String countryCode, Locale locale)Returns a localized name for the given IETF BCP47 region code (either ISO 3166 country code or UN M.49 area codes) and the given locale that is appropriate for display to the user.abstract StringLocaleNameProvider. getDisplayLanguage(String languageCode, Locale locale)Returns a localized name for the given IETF BCP47 language code and the given locale that is appropriate for display to the user.abstract StringCalendarNameProvider. getDisplayName(String calendarType, int field, int value, int style, Locale locale)Returns the string representation (display name) of the calendarfield valuein the givenstyleandlocale.StringCurrencyNameProvider. getDisplayName(String currencyCode, Locale locale)Returns a name for the currency that is appropriate for display to the user.abstract StringTimeZoneNameProvider. getDisplayName(String ID, boolean daylight, int style, Locale locale)Returns a name for the given time zone ID that's suitable for presentation to the user in the specified locale.abstract Map<String,Integer>CalendarNameProvider. getDisplayNames(String calendarType, int field, int style, Locale locale)Returns aMapcontaining all string representations (display names) of theCalendarfieldin the givenstyleandlocaleand their corresponding field values.StringLocaleNameProvider. getDisplayScript(String scriptCode, Locale locale)Returns a localized name for the given IETF BCP47 script code and the given locale that is appropriate for display to the user.StringLocaleNameProvider. getDisplayUnicodeExtensionKey(String key, Locale locale)Returns a localized name for the given Unicode extension key, and the given locale that is appropriate for display to the user.StringLocaleNameProvider. getDisplayUnicodeExtensionType(String type, String key, Locale locale)Returns a localized name for the given Unicode extension type, and the given locale that is appropriate for display to the user.abstract StringLocaleNameProvider. getDisplayVariant(String variant, Locale locale)Returns a localized name for the given variant code and the given locale that is appropriate for display to the user.abstract intCalendarDataProvider. getFirstDayOfWeek(Locale locale)Returns the first day of a week in the givenlocale.StringTimeZoneNameProvider. getGenericDisplayName(String ID, int style, Locale locale)Returns a generic name for the given time zoneIDthat's suitable for presentation to the user in the specifiedlocale.abstract intCalendarDataProvider. getMinimalDaysInFirstWeek(Locale locale)Returns the minimal number of days required in the first week of a year.abstract StringCurrencyNameProvider. getSymbol(String currencyCode, Locale locale)Gets the symbol of the given currency code for the specified locale.booleanLocaleServiceProvider. isSupportedLocale(Locale locale)Returnstrueif the givenlocaleis supported by this locale service provider.protected StringAbstractResourceBundleProvider. toBundleName(String baseName, Locale locale)Returns the bundle name for the givenbaseNameandlocalethat this provider provides. -
Uses of Locale in javax.accessibility
Methods in javax.accessibility that return Locale Modifier and Type Method Description abstract LocaleAccessibleContext. getLocale()Gets the locale of the component.Methods in javax.accessibility with parameters of type Locale Modifier and Type Method Description protected StringAccessibleBundle. toDisplayString(String name, Locale locale)Obtains the key as a localized string.StringAccessibleBundle. toDisplayString(Locale locale)Obtains the key as a localized string. -
Uses of Locale in javax.annotation.processing
Methods in javax.annotation.processing that return Locale Modifier and Type Method Description LocaleProcessingEnvironment. getLocale()Returns the current locale ornullif no locale is in effect. -
Uses of Locale in javax.imageio
Fields in javax.imageio declared as Locale Modifier and Type Field Description protected Locale[]ImageReader. availableLocalesAn array ofLocales which may be used to localize warning messages, ornullif localization is not supported.protected Locale[]ImageWriter. availableLocalesAn array ofLocales that may be used to localize warning messages and compression setting values, ornullif localization is not supported.protected LocaleImageReader. localeThe currentLocaleto be used for localization, ornullif none has been set.protected LocaleImageWriteParam. localeALocaleto be used to localize compression type names and quality descriptions, ornullto use a defaultLocale.protected LocaleImageWriter. localeThe currentLocaleto be used for localization, ornullif none has been set.Fields in javax.imageio with type parameters of type Locale Modifier and Type Field Description protected List<Locale>ImageReader. warningLocalesAListof theLocales associated with each currently registeredIIOReadWarningListener, initialized by default tonull, which is synonymous with an emptyList.protected List<Locale>ImageWriter. warningLocalesAListofLocales, one for each element ofwarningListeners, initialized by defaultnull, which is synonymous with an emptyList.Methods in javax.imageio that return Locale Modifier and Type Method Description Locale[]ImageReader. getAvailableLocales()Returns an array ofLocales that may be used to localize warning listeners and compression settings.Locale[]ImageWriter. getAvailableLocales()Returns an array ofLocales that may be used to localize warning listeners and compression settings.LocaleImageReader. getLocale()Returns the currently setLocale, ornullif none has been set.LocaleImageWriteParam. getLocale()Returns the currently setLocale, ornullif only a defaultLocaleis supported.LocaleImageWriter. getLocale()Returns the currently setLocale, ornullif none has been set.Methods in javax.imageio with parameters of type Locale Modifier and Type Method Description voidImageReader. setLocale(Locale locale)Sets the currentLocaleof thisImageReaderto the given value.voidImageWriter. setLocale(Locale locale)Sets the currentLocaleof thisImageWriterto the given value.Constructors in javax.imageio with parameters of type Locale Constructor Description ImageWriteParam(Locale locale)Constructs anImageWriteParamset to use a givenLocale. -
Uses of Locale in javax.imageio.metadata
Methods in javax.imageio.metadata with parameters of type Locale Modifier and Type Method Description StringIIOMetadataFormat. getAttributeDescription(String elementName, String attrName, Locale locale)Returns aStringcontaining a description of the named attribute, ornull.StringIIOMetadataFormatImpl. getAttributeDescription(String elementName, String attrName, Locale locale)Returns aStringcontaining a description of the named attribute, ornull.StringIIOMetadataFormat. getElementDescription(String elementName, Locale locale)Returns aStringcontaining a description of the named element, ornull.StringIIOMetadataFormatImpl. getElementDescription(String elementName, Locale locale)Returns aStringcontaining a description of the named element, ornull. -
Uses of Locale in javax.imageio.plugins.bmp
Constructors in javax.imageio.plugins.bmp with parameters of type Locale Constructor Description BMPImageWriteParam(Locale locale)Constructs aBMPImageWriteParamset to use a givenLocaleand with default values for all parameters. -
Uses of Locale in javax.imageio.plugins.jpeg
Constructors in javax.imageio.plugins.jpeg with parameters of type Locale Constructor Description JPEGImageWriteParam(Locale locale)Constructs aJPEGImageWriteParam. -
Uses of Locale in javax.imageio.spi
Methods in javax.imageio.spi with parameters of type Locale Modifier and Type Method Description abstract StringIIOServiceProvider. getDescription(Locale locale)Returns a brief, human-readable description of this service provider and its associated implementation. -
Uses of Locale in javax.print.attribute
Methods in javax.print.attribute that return Locale Modifier and Type Method Description LocaleTextSyntax. getLocale()Returns this text attribute's text string's natural language (locale).Constructors in javax.print.attribute with parameters of type Locale Constructor Description TextSyntax(String value, Locale locale)Constructs aTextAttributewith the specified string and locale. -
Uses of Locale in javax.print.attribute.standard
Constructors in javax.print.attribute.standard with parameters of type Locale Constructor Description DocumentName(String documentName, Locale locale)Constructs a new document name attribute with the given document name and locale.JobMessageFromOperator(String message, Locale locale)Constructs a new job message from operator attribute with the given message and locale.JobName(String jobName, Locale locale)Constructs a new job name attribute with the given job name and locale.JobOriginatingUserName(String userName, Locale locale)Constructs a new job originating user name attribute with the given user name and locale.OutputDeviceAssigned(String deviceName, Locale locale)Constructs a new output device assigned attribute with the given device name and locale.PrinterInfo(String info, Locale locale)Constructs a new printer info attribute with the given information string and locale.PrinterLocation(String location, Locale locale)Constructs a new printer location attribute with the given location and locale.PrinterMakeAndModel(String makeAndModel, Locale locale)Constructs a new printer make and model attribute with the given make and model string and locale.PrinterMessageFromOperator(String message, Locale locale)Constructs a new printer message from operator attribute with the given message and locale.PrinterName(String printerName, Locale locale)Constructs a new printer name attribute with the given name and locale.RequestingUserName(String userName, Locale locale)Constructs a new requesting user name attribute with the given user name and locale. -
Uses of Locale in javax.security.auth.callback
Methods in javax.security.auth.callback that return Locale Modifier and Type Method Description LocaleLanguageCallback. getLocale()Get the retrievedLocale.Methods in javax.security.auth.callback with parameters of type Locale Modifier and Type Method Description voidLanguageCallback. setLocale(Locale locale)Set the retrievedLocale. -
Uses of Locale in javax.swing
Methods in javax.swing that return Locale Modifier and Type Method Description static LocaleJComponent. getDefaultLocale()Returns the default locale used to initialize each JComponent's locale property upon creation.LocaleUIDefaults. getDefaultLocale()Returns the default locale.LocaleImageIcon.AccessibleImageIcon. getLocale()Returns the locale of this object.LocaleJTable.AccessibleJTable.AccessibleJTableCell. getLocale()Gets the locale of the component.LocaleJTree.AccessibleJTree.AccessibleJTreeNode. getLocale()Gets the locale of the component.LocaleProgressMonitor.AccessibleProgressMonitor. getLocale()Gets the locale of the component.Methods in javax.swing with parameters of type Locale Modifier and Type Method Description ObjectUIDefaults. get(Object key, Locale l)Returns the value for key associated with the given locale.static ObjectUIManager. get(Object key, Locale l)Returns an object from the defaults that is appropriate for the given locale.booleanUIDefaults. getBoolean(Object key, Locale l)If the value ofkeyfor the givenLocaleis boolean, return the boolean value, otherwise return false.static booleanUIManager. getBoolean(Object key, Locale l)Returns a boolean from the defaults which is associated with the key value and the givenLocale.BorderUIDefaults. getBorder(Object key, Locale l)If the value ofkeyfor the givenLocaleis aBorderreturn it, otherwise returnnull.static BorderUIManager. getBorder(Object key, Locale l)Returns a border from the defaults that is appropriate for the given locale.ColorUIDefaults. getColor(Object key, Locale l)If the value ofkeyfor the givenLocaleis aColorreturn it, otherwise returnnull.static ColorUIManager. getColor(Object key, Locale l)Returns a color from the defaults that is appropriate for the given locale.DimensionUIDefaults. getDimension(Object key, Locale l)If the value ofkeyfor the givenLocaleis aDimensionreturn it, otherwise returnnull.static DimensionUIManager. getDimension(Object key, Locale l)Returns a dimension from the defaults that is appropriate for the given locale.FontUIDefaults. getFont(Object key, Locale l)If the value ofkeyfor the givenLocaleis aFontreturn it, otherwise returnnull.static FontUIManager. getFont(Object key, Locale l)Returns a font from the defaults that is appropriate for the given locale.IconUIDefaults. getIcon(Object key, Locale l)If the value ofkeyfor the givenLocaleis anIconreturn it, otherwise returnnull.static IconUIManager. getIcon(Object key, Locale l)Returns anIconfrom the defaults that is appropriate for the given locale.InsetsUIDefaults. getInsets(Object key, Locale l)If the value ofkeyfor the givenLocaleis anInsetsreturn it, otherwise returnnull.static InsetsUIManager. getInsets(Object key, Locale l)Returns anInsetsobject from the defaults that is appropriate for the given locale.intUIDefaults. getInt(Object key, Locale l)If the value ofkeyfor the givenLocaleis anIntegerreturn its integer value, otherwise return 0.static intUIManager. getInt(Object key, Locale l)Returns an integer from the defaults that is appropriate for the given locale.StringUIDefaults. getString(Object key, Locale l)If the value ofkeyfor the givenLocaleis aStringreturn it, otherwise returnnull.static StringUIManager. getString(Object key, Locale l)Returns a string from the defaults that is appropriate for the given locale.static voidJComponent. setDefaultLocale(Locale l)Sets the default locale used to initialize each JComponent's locale property upon creation.voidUIDefaults. setDefaultLocale(Locale l)Sets the default locale. -
Uses of Locale in javax.tools
Methods in javax.tools with parameters of type Locale Modifier and Type Method Description StringDiagnostic. getMessage(Locale locale)Returns a localized message for the given locale.StandardJavaFileManagerDocumentationTool. getStandardFileManager(DiagnosticListener<? super JavaFileObject> diagnosticListener, Locale locale, Charset charset)Returns a new instance of the standard file manager implementation for this tool.StandardJavaFileManagerJavaCompiler. getStandardFileManager(DiagnosticListener<? super JavaFileObject> diagnosticListener, Locale locale, Charset charset)Returns a new instance of the standard file manager implementation for this tool.voidDocumentationTool.DocumentationTask. setLocale(Locale locale)Sets the locale to be applied when formatting diagnostics and other localized data.voidJavaCompiler.CompilationTask. setLocale(Locale locale)Sets the locale to be applied when formatting diagnostics and other localized data. -
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 jdk.javadoc.doclet
Methods in jdk.javadoc.doclet with parameters of type Locale Modifier and Type Method Description voidDoclet. init(Locale locale, Reporter reporter)Initializes this doclet with the given locale and error reporter. -
Uses of Locale in jdk.jshell
Methods in jdk.jshell with parameters of type Locale Modifier and Type Method Description abstract StringDiag. getMessage(Locale locale)Returns a localized message for the given locale. -
Uses of Locale in jdk.jshell.tool
Methods in jdk.jshell.tool with parameters of type Locale Modifier and Type Method Description JavaShellToolBuilderJavaShellToolBuilder. locale(Locale locale)Set the 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.
-