Uses of Class
java.util.Locale
Packages that useLocale
Package
Description
Provides a collection of interfaces and classes that compose the Java Accessibility Utilities.
Provides the classes necessary to create an applet and the classes an applet uses to communicate with its applet context.
Contains all of the classes for creating user interfaces and for painting graphics and images.
Provides classes and interfaces for the input method framework.
Provides interfaces that enable the development of input methods that can be used with any Java runtime environment.
Provides classes and interfaces relating to bean context.
Provides for system input and output through data streams, serialization and the file system.
Provides classes that are fundamental to the design of the Java programming language.
Defines charsets, decoders, and encoders, for translating between bytes and Unicode characters.
Provides classes and interfaces for handling text, dates, numbers, and messages in a manner independent of natural languages.
Service provider classes for the classes in the java.text package.
The main API for dates, times, instants, and durations.
Generic API for calendar systems other than the default ISO.
Provides classes to print and parse dates and times.
Access to date and time using fields and units, and date time adjusters.
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.
Service provider classes for the classes in the java.util package.
Defines a contract between user-interface components and an assistive technology that provides access to those components.
Facilities for declaring annotation processors and for allowing annotation processors to communicate with an annotation processing tool environment.
The main package of the Java Image I/O API.
A package of the Java Image I/O API dealing with reading and writing metadata.
Package containing the public classes used by the built-in BMP plug-in.
Classes supporting the built-in JPEG plug-in.
A package of the Java Image I/O API containing the plug-in interfaces for readers, writers, transcoders, and streams, and a runtime registry.
Provides classes and interfaces that describe the types of Java Print Service attributes and how they can be collected into attribute sets.
Package
javax.print.attribute.standard contains classes for specific printing attributes.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).
Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.
Provides classes and interfaces for dealing with
javax.swing.JTable.Provides interfaces for tools which can be invoked from a program, for example, compilers.
Defines XML/Java Type Mappings.
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.
Provides interfaces for creating tools, such as a Read-Eval-Print Loop (REPL), which interactively evaluate "snippets" of Java programming language code.
Provides a mechanism to launch an instance of a Java shell tool.
Provides the interfaces for the Simple API for XML (SAX).
Provides helper classes, including support for bootstrapping SAX-based applications.
Uses ofLocale incom.sun.java.accessibility.util
Methods incom.sun.java.accessibility.util that returnLocaleUses ofLocale injava.applet
Methods injava.applet that returnLocaleUses ofLocale injava.awt
Modifier and TypeMethodDescriptionComponent.AccessibleAWTComponent.getLocale()Returns the locale of this object.Component.getLocale()Gets the locale of this component.List.AccessibleAWTList.AccessibleAWTListChild.getLocale()Gets the locale of the component.MenuComponent.AccessibleAWTMenuComponent.getLocale()Returns the locale of this object.Window.getLocale()Gets theLocaleobject that is associated with this window, if the locale has been set.Modifier and TypeMethodDescriptionabstractString[]GraphicsEnvironment.getAvailableFontFamilyNames(Locale l) Returns an array containing the names of all font families in thisGraphicsEnvironmentlocalized for the specified locale.Returns the family name of thisFont, localized for the specified locale.Font.getFontName(Locale l) Returns the font face name of theFont, localized for the specified locale.staticComponentOrientationComponentOrientation.getOrientation(Locale locale) Returns the orientation that is appropriate for the given locale.voidSets the locale of this component.Uses ofLocale injava.awt.im
Methods injava.awt.im that returnLocaleModifier and TypeMethodDescriptionInputContext.getLocale()Returns the current locale of the current input method or keyboard layout.Methods injava.awt.im with parameters of typeLocaleModifier and TypeMethodDescriptionbooleanInputContext.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 ofLocale injava.awt.im.spi
Methods injava.awt.im.spi that returnLocaleModifier and TypeMethodDescriptionLocale[]InputMethodDescriptor.getAvailableLocales()Returns the locales supported by the corresponding input method.InputMethod.getLocale()Returns the current input locale.Methods injava.awt.im.spi with parameters of typeLocaleModifier and TypeMethodDescriptionInputMethodDescriptor.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.InputMethodDescriptor.getInputMethodIcon(Locale inputLocale) Returns an icon for the corresponding input method.booleanAttempts to set the input locale.Uses ofLocale injava.beans.beancontext
Fields injava.beans.beancontext declared asLocaleModifier and TypeFieldDescriptionprotectedLocaleBeanContextSupport.localeThe current locale of this BeanContext.Methods injava.beans.beancontext that returnLocaleModifier and TypeMethodDescriptionBeanContextSupport.getLocale()Gets the locale for thisBeanContext.Methods injava.beans.beancontext with parameters of typeLocaleModifier and TypeMethodDescriptionvoidSets the locale of this BeanContext.Constructors injava.beans.beancontext with parameters of typeLocaleModifierConstructorDescriptionBeanContextServicesSupport(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 instanceUses ofLocale injava.io
Modifier and TypeMethodDescriptionWrites a formatted string to this output stream using the specified format string and arguments.Writes a formatted string to this writer using the specified format string and arguments.A convenience method to write a formatted string to this output stream using the specified format string and arguments.A convenience method to write a formatted string to this writer using the specified format string and arguments.Uses ofLocale injava.lang
Modifier and TypeMethodDescriptionstaticStringReturns a formatted string using the specified locale, format string, and arguments.String.toLowerCase(Locale locale) Converts all of the characters in thisStringto lower case using the rules of the givenLocale.String.toUpperCase(Locale locale) Converts all of the characters in thisStringto upper case using the rules of the givenLocale.Uses ofLocale injava.nio.charset
Methods injava.nio.charset with parameters of typeLocaleModifier and TypeMethodDescriptionCharset.displayName(Locale locale) Returns this charset's human-readable name for the given locale.Uses ofLocale injava.text
Modifier and TypeMethodDescriptionstaticLocale[]BreakIterator.getAvailableLocales()Returns an array of all locales for which theget*Instancemethods of this class can return localized instances.staticLocale[]Collator.getAvailableLocales()Returns an array of all locales for which thegetInstancemethods of this class can return localized instances.staticLocale[]DateFormat.getAvailableLocales()Returns an array of all locales for which theget*Instancemethods of this class can return localized instances.staticLocale[]DateFormatSymbols.getAvailableLocales()Returns an array of all locales for which thegetInstancemethods of this class can return localized instances.staticLocale[]DecimalFormatSymbols.getAvailableLocales()Returns an array of all locales for which thegetInstancemethods of this class can return localized instances.staticLocale[]NumberFormat.getAvailableLocales()Returns an array of all locales for which theget*Instancemethods of this class can return localized instances.MessageFormat.getLocale()Gets the locale that's used when creating or comparing subformats.Modifier and TypeMethodDescriptionstaticBreakIteratorBreakIterator.getCharacterInstance(Locale locale) Returns a newBreakIteratorinstance forcharacter breaks for the given locale.staticNumberFormatNumberFormat.getCompactNumberInstance(Locale locale,NumberFormat.Style formatStyle) Returns a compact number format for the specifiedlocaleandformatStyle.staticNumberFormatNumberFormat.getCurrencyInstance(Locale inLocale) Returns a currency format for the specified locale.static finalDateFormatDateFormat.getDateInstance(int style,Locale aLocale) Gets the date formatter with the given formatting style for the given locale.static finalDateFormatDateFormat.getDateTimeInstance(int dateStyle, int timeStyle,Locale aLocale) Gets the date/time formatter with the given formatting styles for the given locale.staticCollatorCollator.getInstance(Locale desiredLocale) Gets the Collator for the desired locale.static finalDateFormatSymbolsDateFormatSymbols.getInstance(Locale locale) Gets theDateFormatSymbolsinstance for the specified locale.static finalDecimalFormatSymbolsDecimalFormatSymbols.getInstance(Locale locale) Gets theDecimalFormatSymbolsinstance for the specified locale.staticNumberFormatNumberFormat.getInstance(Locale inLocale) Returns a general-purpose number format for the specified locale.staticNumberFormatNumberFormat.getIntegerInstance(Locale inLocale) Returns an integer number format for the specified locale.staticBreakIteratorBreakIterator.getLineInstance(Locale locale) Returns a newBreakIteratorinstance forline breaks for the given locale.staticNumberFormatNumberFormat.getNumberInstance(Locale inLocale) Returns a general-purpose number format for the specified locale.staticNumberFormatNumberFormat.getPercentInstance(Locale inLocale) Returns a percentage format for the specified locale.staticBreakIteratorBreakIterator.getSentenceInstance(Locale locale) Returns a newBreakIteratorinstance forsentence breaks for the given locale.static finalDateFormatDateFormat.getTimeInstance(int style,Locale aLocale) Gets the time formatter with the given formatting style for the given locale.staticBreakIteratorBreakIterator.getWordInstance(Locale locale) Returns a newBreakIteratorinstance forword breaks for the given locale.voidSets the locale to be used when creating or comparing subformats.ModifierConstructorDescriptionDateFormatSymbols(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 ofLocale injava.text.spi
Methods injava.text.spi with parameters of typeLocaleModifier and TypeMethodDescriptionabstractBreakIteratorBreakIteratorProvider.getCharacterInstance(Locale locale) Returns a newBreakIteratorinstance forcharacter breaks for the given locale.NumberFormatProvider.getCompactNumberInstance(Locale locale,NumberFormat.Style formatStyle) Returns a newNumberFormatinstance which formats a number in its compact form for the specifiedlocaleandformatStyle.abstractNumberFormatNumberFormatProvider.getCurrencyInstance(Locale locale) Returns a newNumberFormatinstance which formats monetary values for the specified locale.abstractDateFormatDateFormatProvider.getDateInstance(int style,Locale locale) Returns a newDateFormatinstance which formats date with the given formatting style for the specified locale.abstractDateFormatDateFormatProvider.getDateTimeInstance(int dateStyle, int timeStyle,Locale locale) Returns a newDateFormatinstance which formats date and time with the given formatting style for the specified locale.abstractCollatorCollatorProvider.getInstance(Locale locale) Returns a newCollatorinstance for the specified locale.abstractDateFormatSymbolsDateFormatSymbolsProvider.getInstance(Locale locale) Returns a newDateFormatSymbolsinstance for the specified locale.abstractDecimalFormatSymbolsDecimalFormatSymbolsProvider.getInstance(Locale locale) Returns a newDecimalFormatSymbolsinstance for the specified locale.abstractNumberFormatNumberFormatProvider.getIntegerInstance(Locale locale) Returns a newNumberFormatinstance which formats integer values for the specified locale.abstractBreakIteratorBreakIteratorProvider.getLineInstance(Locale locale) Returns a newBreakIteratorinstance forline breaks for the given locale.abstractNumberFormatNumberFormatProvider.getNumberInstance(Locale locale) Returns a new general-purposeNumberFormatinstance for the specified locale.abstractNumberFormatNumberFormatProvider.getPercentInstance(Locale locale) Returns a newNumberFormatinstance which formats percentage values for the specified locale.abstractBreakIteratorBreakIteratorProvider.getSentenceInstance(Locale locale) Returns a newBreakIteratorinstance forsentence breaks for the given locale.abstractDateFormatDateFormatProvider.getTimeInstance(int style,Locale locale) Returns a newDateFormatinstance which formats time with the given formatting style for the specified locale.abstractBreakIteratorBreakIteratorProvider.getWordInstance(Locale locale) Returns a newBreakIteratorinstance forword breaks for the given locale.Uses ofLocale injava.time
Modifier and TypeMethodDescriptionDayOfWeek.getDisplayName(TextStyle style,Locale locale) Gets the textual representation, such as 'Mon' or 'Friday'.Month.getDisplayName(TextStyle style,Locale locale) Gets the textual representation, such as 'Jan' or 'December'.ZoneId.getDisplayName(TextStyle style,Locale locale) Gets the textual representation of the zone, such as 'British Time' or '+02:00'.Uses ofLocale injava.time.chrono
Methods injava.time.chrono with parameters of typeLocaleModifier and TypeMethodDescriptiondefaultStringChronology.getDisplayName(TextStyle style,Locale locale) Gets the textual representation of this chronology.defaultStringEra.getDisplayName(TextStyle style,Locale locale) Gets the textual representation of this era.HijrahEra.getDisplayName(TextStyle style,Locale locale) Gets the textual representation of this era.JapaneseEra.getDisplayName(TextStyle style,Locale locale) Gets the textual representation of this era.MinguoEra.getDisplayName(TextStyle style,Locale locale) Gets the textual representation of this era.ThaiBuddhistEra.getDisplayName(TextStyle style,Locale locale) Gets the textual representation of this era.staticChronologyObtains an instance ofChronologyfrom a locale.Uses ofLocale injava.time.format
Methods injava.time.format that returnLocaleModifier and TypeMethodDescriptionDateTimeFormatter.getLocale()Gets the locale to be used during formatting.Methods injava.time.format that return types with arguments of typeLocaleModifier and TypeMethodDescriptionDecimalStyle.getAvailableLocales()Lists all the locales that are supported.Methods injava.time.format with parameters of typeLocaleModifier and TypeMethodDescriptionstaticStringDateTimeFormatterBuilder.getLocalizedDateTimePattern(FormatStyle dateStyle,FormatStyle timeStyle,Chronology chrono,Locale locale) Gets the formatting pattern for date and time styles for a locale and chronology.DateTimeFormatter.localizedBy(Locale locale) Returns a copy of this formatter with localized values of the locale, calendar, region, decimal style and/or timezone, that supersede values in this formatter.staticDecimalStyleObtains the DecimalStyle for the specified locale.staticDateTimeFormatterCreates a formatter using the specified pattern and locale.DateTimeFormatterBuilder.toFormatter(Locale locale) Completes this builder by creating theDateTimeFormatterusing the specified locale.DateTimeFormatter.withLocale(Locale locale) Returns a copy of this formatter with a new locale.Uses ofLocale injava.time.temporal
Methods injava.time.temporal with parameters of typeLocaleModifier and TypeMethodDescriptiondefaultStringTemporalField.getDisplayName(Locale locale) Gets the display name for the field in the requested locale.staticWeekFieldsObtains an instance ofWeekFieldsappropriate for a locale.Uses ofLocale injava.util
Modifier and TypeFieldDescriptionstatic finalLocaleLocale.CANADAUseful constant for country.static finalLocaleLocale.CANADA_FRENCHUseful constant for country.static finalLocaleLocale.CHINAUseful constant for country.static finalLocaleLocale.CHINESEUseful constant for language.static finalLocaleLocale.ENGLISHUseful constant for language.static finalLocaleLocale.FRANCEUseful constant for country.static finalLocaleLocale.FRENCHUseful constant for language.static finalLocaleLocale.GERMANUseful constant for language.static finalLocaleLocale.GERMANYUseful constant for country.static finalLocaleLocale.ITALIANUseful constant for language.static finalLocaleLocale.ITALYUseful constant for country.static finalLocaleLocale.JAPANUseful constant for country.static finalLocaleLocale.JAPANESEUseful constant for language.static finalLocaleLocale.KOREAUseful constant for country.static finalLocaleLocale.KOREANUseful constant for language.static finalLocaleLocale.PRCUseful constant for country.static finalLocaleLocale.ROOTUseful constant for the root locale.static finalLocaleLocale.SIMPLIFIED_CHINESEUseful constant for language.static finalLocaleLocale.TAIWANUseful constant for country.static finalLocaleLocale.TRADITIONAL_CHINESEUseful constant for language.static finalLocaleLocale.UKUseful constant for country.static finalLocaleLocale.USUseful constant for country.Modifier and TypeMethodDescriptionLocale.Builder.build()Returns an instance ofLocalecreated from the fields set on this builder.staticLocaleLocale.forLanguageTag(String languageTag) Returns a locale for the specified IETF BCP 47 language tag string.staticLocale[]Calendar.getAvailableLocales()Returns an array of all locales for which thegetInstancemethods of this class can return localized instances.staticLocale[]Locale.getAvailableLocales()Returns an array of all installed locales.staticLocaleLocale.getDefault()Gets the current value of the default locale for this instance of the Java Virtual Machine.staticLocaleLocale.getDefault(Locale.Category category) Gets the current value of the default locale for the specified Category for this instance of the Java Virtual Machine.ResourceBundle.Control.getFallbackLocale(String baseName,Locale locale) Returns aLocaleto be used as a fallback locale for further resource bundle searches by theResourceBundle.getBundlefactory method.ResourceBundle.getLocale()Returns the locale of this resource bundle.Formatter.locale()Returns the locale set by the construction of this formatter.Scanner.locale()Returns this scanner's locale.staticLocaleLocale.lookup(List<Locale.LanguageRange> priorityList,Collection<Locale> locales) Returns aLocaleinstance for the best-matching language tag using the lookup mechanism defined in RFC 4647.Locale.stripExtensions()Returns a copy of thisLocalewith no extensions.Modifier and TypeMethodDescriptionLocale.filter(List<Locale.LanguageRange> priorityList,Collection<Locale> locales) Returns a list of matchingLocaleinstances using the filtering mechanism defined in RFC 4647.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.ResourceBundle.Control.getCandidateLocales(String baseName,Locale locale) Returns aListofLocales as candidate locales forbaseNameandlocale.Modifier and TypeMethodDescriptionWrites a formatted string to this object's destination using the specified locale, format string, and arguments.static finalResourceBundleGets a resource bundle using the specified base name and locale, and the caller module.staticResourceBundleResourceBundle.getBundle(String baseName,Locale locale,ClassLoader loader) Gets a resource bundle using the specified base name, locale, and class loader.staticResourceBundleResourceBundle.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.staticResourceBundleGets a resource bundle using the specified base name and locale on behalf of the specified module.static finalResourceBundleResourceBundle.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.ResourceBundle.Control.getCandidateLocales(String baseName,Locale locale) Returns aListofLocales as candidate locales forbaseNameandlocale.Locale.getDisplayCountry(Locale inLocale) Returns a name for the locale's country that is appropriate for display to the user.Locale.getDisplayLanguage(Locale inLocale) Returns a name for the locale's language that is appropriate for display to the user.Calendar.getDisplayName(int field, int style,Locale locale) Returns the string representation of the calendarfieldvalue in the givenstyleandlocale.Currency.getDisplayName(Locale locale) Gets the name that is suitable for displaying this currency for the specified locale.Locale.getDisplayName(Locale inLocale) Returns a name for the locale that is appropriate for display to the user.TimeZone.getDisplayName(boolean daylight, int style,Locale locale) Returns a name in the specifiedstyleof thisTimeZonesuitable for presentation to the user in the specifiedlocale.finalStringTimeZone.getDisplayName(Locale locale) Returns a long standard time name of thisTimeZonesuitable for presentation to the user in the specifiedlocale.Calendar.getDisplayNames(int field, int style,Locale locale) Returns aMapcontaining all names of the calendarfieldin the givenstyleandlocaleand their corresponding field values.Locale.getDisplayScript(Locale inLocale) Returns a name for the locale's script that is appropriate for display to the user.Locale.getDisplayVariant(Locale inLocale) Returns a name for the locale's variant code that is appropriate for display to the user.ResourceBundle.Control.getFallbackLocale(String baseName,Locale locale) Returns aLocaleto be used as a fallback locale for further resource bundle searches by theResourceBundle.getBundlefactory method.staticCalendarCalendar.getInstance(Locale aLocale) Gets a calendar using the default time zone and specified locale.staticCalendarCalendar.getInstance(TimeZone zone,Locale aLocale) Gets a calendar with the specified time zone and locale.staticCurrencyCurrency.getInstance(Locale locale) Returns theCurrencyinstance for the country of the given 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.ResourceBundle.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.Sets the locale parameter to the givenlocale.Resets theBuilderto match the providedlocale.ResourceBundle.Control.toBundleName(String baseName,Locale locale) Converts the givenbaseNameandlocaleto the bundle name.Sets this scanner's locale to the specified locale.Modifier and TypeMethodDescriptionLocale.filter(List<Locale.LanguageRange> priorityList,Collection<Locale> locales) Returns a list of matchingLocaleinstances using the filtering mechanism defined in RFC 4647.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.staticLocaleLocale.lookup(List<Locale.LanguageRange> priorityList,Collection<Locale> locales) Returns aLocaleinstance for the best-matching language tag using the lookup mechanism defined in RFC 4647.ModifierConstructorDescriptionprotectedConstructs a calendar with the specified time zone and locale.Constructs a new formatter with the specified file, charset, and locale.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.Constructs a new formatter with the specified file name, charset, and locale.Constructs a new formatter with the specified file name, charset, and locale.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 ofLocale injava.util.spi
Methods injava.util.spi that returnLocaleModifier and TypeMethodDescriptionabstractLocale[]LocaleServiceProvider.getAvailableLocales()Returns an array of all locales for which this locale service provider can provide localized objects or names.Methods injava.util.spi with parameters of typeLocaleModifier and TypeMethodDescriptionReturns aResourceBundlefor the givenbaseNameandlocale.Returns aResourceBundlefor the given bundle name and locale.abstractStringLocaleNameProvider.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.abstractStringLocaleNameProvider.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.abstractStringCalendarNameProvider.getDisplayName(String calendarType, int field, int value, int style,Locale locale) Returns the string representation (display name) of the calendarfield valuein the givenstyleandlocale.CurrencyNameProvider.getDisplayName(String currencyCode,Locale locale) Returns a name for the currency that is appropriate for display to the user.abstractStringTimeZoneNameProvider.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.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.LocaleNameProvider.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.LocaleNameProvider.getDisplayUnicodeExtensionKey(String key,Locale locale) Returns a localized name for the givenUnicode extension key, and the given locale that is appropriate for display to the user.LocaleNameProvider.getDisplayUnicodeExtensionType(String type,String key,Locale locale) Returns a localized name for the givenUnicode extension type, and the given locale that is appropriate for display to the user.abstractStringLocaleNameProvider.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.TimeZoneNameProvider.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.abstractStringGets the symbol of the given currency code for the specified locale.booleanLocaleServiceProvider.isSupportedLocale(Locale locale) Returnstrueif the givenlocaleis supported by this locale service provider.protectedStringAbstractResourceBundleProvider.toBundleName(String baseName,Locale locale) Returns the bundle name for the givenbaseNameandlocalethat this provider provides.Uses ofLocale injavax.accessibility
Methods injavax.accessibility that returnLocaleModifier and TypeMethodDescriptionabstractLocaleAccessibleContext.getLocale()Gets the locale of the component.Methods injavax.accessibility with parameters of typeLocaleModifier and TypeMethodDescriptionprotectedStringAccessibleBundle.toDisplayString(String name,Locale locale) Obtains the key as a localized string.AccessibleBundle.toDisplayString(Locale locale) Obtains the key as a localized string.Uses ofLocale injavax.annotation.processing
Methods injavax.annotation.processing that returnLocaleUses ofLocale injavax.imageio
Fields injavax.imageio declared asLocaleModifier and TypeFieldDescriptionprotectedLocale[]ImageReader.availableLocalesAn array ofLocales which may be used to localize warning messages, ornullif localization is not supported.protectedLocale[]ImageWriter.availableLocalesAn array ofLocales that may be used to localize warning messages and compression setting values, ornullif localization is not supported.protectedLocaleImageReader.localeThe currentLocaleto be used for localization, ornullif none has been set.protectedLocaleImageWriteParam.localeALocaleto be used to localize compression type names and quality descriptions, ornullto use a defaultLocale.protectedLocaleImageWriter.localeThe currentLocaleto be used for localization, ornullif none has been set.Fields injavax.imageio with type parameters of typeLocaleModifier and TypeFieldDescriptionImageReader.warningLocalesAListof theLocales associated with each currently registeredIIOReadWarningListener, initialized by default tonull, which is synonymous with an emptyList.ImageWriter.warningLocalesAListofLocales, one for each element ofwarningListeners, initialized by defaultnull, which is synonymous with an emptyList.Methods injavax.imageio that returnLocaleModifier and TypeMethodDescriptionLocale[]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.ImageReader.getLocale()Returns the currently setLocale, ornullif none has been set.ImageWriteParam.getLocale()Returns the currently setLocale, ornullif only a defaultLocaleis supported.ImageWriter.getLocale()Returns the currently setLocale, ornullif none has been set.Methods injavax.imageio with parameters of typeLocaleModifier and TypeMethodDescriptionvoidSets the currentLocaleof thisImageReaderto the given value.voidSets the currentLocaleof thisImageWriterto the given value.Constructors injavax.imageio with parameters of typeLocaleModifierConstructorDescriptionImageWriteParam(Locale locale) Constructs anImageWriteParamset to use a givenLocale.Uses ofLocale injavax.imageio.metadata
Methods injavax.imageio.metadata with parameters of typeLocaleModifier and TypeMethodDescriptionIIOMetadataFormat.getAttributeDescription(String elementName,String attrName,Locale locale) Returns aStringcontaining a description of the named attribute, ornull.IIOMetadataFormatImpl.getAttributeDescription(String elementName,String attrName,Locale locale) Returns aStringcontaining a description of the named attribute, ornull.IIOMetadataFormat.getElementDescription(String elementName,Locale locale) Returns aStringcontaining a description of the named element, ornull.IIOMetadataFormatImpl.getElementDescription(String elementName,Locale locale) Returns aStringcontaining a description of the named element, ornull.Uses ofLocale injavax.imageio.plugins.bmp
Constructors injavax.imageio.plugins.bmp with parameters of typeLocaleModifierConstructorDescriptionBMPImageWriteParam(Locale locale) Constructs aBMPImageWriteParamset to use a givenLocaleand with default values for all parameters.Uses ofLocale injavax.imageio.plugins.jpeg
Constructors injavax.imageio.plugins.jpeg with parameters of typeLocaleUses ofLocale injavax.imageio.spi
Methods injavax.imageio.spi with parameters of typeLocaleModifier and TypeMethodDescriptionabstractStringIIOServiceProvider.getDescription(Locale locale) Returns a brief, human-readable description of this service provider and its associated implementation.Uses ofLocale injavax.print.attribute
Methods injavax.print.attribute that returnLocaleModifier and TypeMethodDescriptionTextSyntax.getLocale()Returns this text attribute's text string's natural language (locale).Constructors injavax.print.attribute with parameters of typeLocaleModifierConstructorDescriptionprotectedTextSyntax(String value,Locale locale) Constructs aTextAttributewith the specified string and locale.Uses ofLocale injavax.print.attribute.standard
Constructors injavax.print.attribute.standard with parameters of typeLocaleModifierConstructorDescriptionDocumentName(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.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 ofLocale injavax.security.auth.callback
Methods injavax.security.auth.callback that returnLocaleMethods injavax.security.auth.callback with parameters of typeLocaleUses ofLocale injavax.swing
Methods injavax.swing that returnLocaleModifier and TypeMethodDescriptionstaticLocaleJComponent.getDefaultLocale()Returns the default locale used to initialize each JComponent's locale property upon creation.UIDefaults.getDefaultLocale()Returns the default locale.ImageIcon.AccessibleImageIcon.getLocale()Returns the locale of this object.JList.AccessibleJList.AccessibleJListChild.getLocale()JTable.AccessibleJTable.AccessibleJTableCell.getLocale()Gets the locale of the component.JTree.AccessibleJTree.AccessibleJTreeNode.getLocale()Gets the locale of the component.ProgressMonitor.AccessibleProgressMonitor.getLocale()Gets the locale of the component.Methods injavax.swing with parameters of typeLocaleModifier and TypeMethodDescriptionReturns the value for key associated with the given locale.staticObjectReturns 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.If the value ofkeyfor the givenLocaleis aBorderreturn it, otherwise returnnull.staticBorderReturns a border from the defaults that is appropriate for the given locale.If the value ofkeyfor the givenLocaleis aColorreturn it, otherwise returnnull.staticColorReturns a color from the defaults that is appropriate for the given locale.UIDefaults.getDimension(Object key,Locale l) If the value ofkeyfor the givenLocaleis aDimensionreturn it, otherwise returnnull.staticDimensionUIManager.getDimension(Object key,Locale l) Returns a dimension from the defaults that is appropriate for the given locale.If the value ofkeyfor the givenLocaleis aFontreturn it, otherwise returnnull.staticFontReturns a font from the defaults that is appropriate for the given locale.If the value ofkeyfor the givenLocaleis anIconreturn it, otherwise returnnull.staticIconReturns anIconfrom the defaults that is appropriate for the given locale.If the value ofkeyfor the givenLocaleis anInsetsreturn it, otherwise returnnull.staticInsetsReturns anInsetsobject from the defaults that is appropriate for the given locale.intIf the value ofkeyfor the givenLocaleis anIntegerreturn its integer value, otherwise return 0.static intReturns an integer from the defaults that is appropriate for the given locale.If the value ofkeyfor the givenLocaleis aStringreturn it, otherwise returnnull.staticStringReturns 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 ofLocale injavax.swing.table
Methods injavax.swing.table that returnLocaleUses ofLocale injavax.tools
Methods injavax.tools with parameters of typeLocaleModifier and TypeMethodDescriptionDiagnostic.getMessage(Locale locale) Returns a localized message for the given locale.DocumentationTool.getStandardFileManager(DiagnosticListener<? superJavaFileObject> diagnosticListener,Locale locale,Charset charset) Returns a new instance of the standard file manager implementation for this tool.JavaCompiler.getStandardFileManager(DiagnosticListener<? superJavaFileObject> diagnosticListener,Locale locale,Charset charset) Returns a new instance of the standard file manager implementation for this tool.voidSets the locale to be applied when formatting diagnostics and other localized data.voidSets the locale to be applied when formatting diagnostics and other localized data.Uses ofLocale injavax.xml.datatype
Methods injavax.xml.datatype with parameters of typeLocaleModifier and TypeMethodDescriptionabstractGregorianCalendarXMLGregorianCalendar.toGregorianCalendar(TimeZone timezone,Locale aLocale,XMLGregorianCalendar defaults) Convert thisXMLGregorianCalendaralong with provided parameters to aGregorianCalendarinstance.Uses ofLocale injdk.javadoc.doclet
Methods injdk.javadoc.doclet that returnLocaleMethods injdk.javadoc.doclet with parameters of typeLocaleUses ofLocale injdk.jshell
Methods injdk.jshell with parameters of typeLocaleModifier and TypeMethodDescriptionabstractStringDiag.getMessage(Locale locale) Returns a localized message for the given locale.Uses ofLocale injdk.jshell.tool
Methods injdk.jshell.tool with parameters of typeLocaleModifier and TypeMethodDescriptionSet the locale.Uses ofLocale inorg.xml.sax
Methods inorg.xml.sax with parameters of typeLocaleUses ofLocale inorg.xml.sax.helpers
Methods inorg.xml.sax.helpers with parameters of typeLocale