Uses of Class
java.util.Locale
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 of Locale in com.sun.java.accessibility.util
-
Uses of Locale in java.applet
-
Uses of Locale in java.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 theLocale
object that is associated with this window, if the locale has been set.Modifier and TypeMethodDescriptionabstract String[]
GraphicsEnvironment.getAvailableFontFamilyNames
(Locale l) Returns an array containing the names of all font families in thisGraphicsEnvironment
localized 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.static ComponentOrientation
ComponentOrientation.getOrientation
(Locale locale) Returns the orientation that is appropriate for the given locale.void
Sets the locale of this component. -
Uses of Locale in java.awt.im
Modifier and TypeMethodDescriptionInputContext.getLocale()
Returns the current locale of the current input method or keyboard layout.Modifier and TypeMethodDescriptionboolean
InputContext.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
Modifier and TypeMethodDescriptionLocale[]
InputMethodDescriptor.getAvailableLocales()
Returns the locales supported by the corresponding input method.InputMethod.getLocale()
Returns the current input locale.Modifier 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.boolean
Attempts to set the input locale. -
Uses of Locale in java.beans.beancontext
Modifier and TypeFieldDescriptionprotected Locale
BeanContextSupport.locale
Deprecated, for removal: This API element is subject to removal in a future version.The current locale of this BeanContext.Modifier and TypeMethodDescriptionBeanContextSupport.getLocale()
Deprecated, for removal: This API element is subject to removal in a future version.Gets the locale for thisBeanContext
.Modifier and TypeMethodDescriptionvoid
Deprecated, for removal: This API element is subject to removal in a future version.Sets the locale of this BeanContext.ModifierConstructorDescriptionBeanContextServicesSupport
(BeanContextServices peer, Locale lcle) Deprecated, for removal: This API element is subject to removal in a future version.Create an instance using the specified localeBeanContextServicesSupport
(BeanContextServices peer, Locale lcle, boolean dtime) Deprecated, for removal: This API element is subject to removal in a future version.Create an instance using the specified Locale and design mode.BeanContextServicesSupport
(BeanContextServices peer, Locale lcle, boolean dTime, boolean visible) Deprecated, for removal: This API element is subject to removal in a future version.Construct a BeanContextServicesSupport instanceBeanContextSupport
(BeanContext peer, Locale lcle) Deprecated, for removal: This API element is subject to removal in a future version.Create an instance using the specified localeBeanContextSupport
(BeanContext peer, Locale lcle, boolean dtime) Deprecated, for removal: This API element is subject to removal in a future version.Create an instance using the specified Locale and design mode.BeanContextSupport
(BeanContext peer, Locale lcle, boolean dTime, boolean visible) Deprecated, for removal: This API element is subject to removal in a future version.Construct a BeanContextSupport instance -
Uses of Locale in java.io
Modifier and TypeMethodDescriptionWrites a formatted string to this console's output stream using the specified format string and arguments with the specifiedlocale
.Writes 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 console's output stream using the specified format string and arguments with the specifiedlocale
.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.Provides a formatted prompt using the specifiedlocale
, then reads a single line of text from the console.char[]
Console.readPassword
(Locale locale, String format, Object... args) Provides a formatted prompt using the specifiedlocale
, then reads a password or passphrase from the console with echoing disabled. -
Uses of Locale in java.lang
Modifier and TypeMethodDescriptionstatic String
Returns a formatted string using the specified locale, format string, and arguments.String.toLowerCase
(Locale locale) Converts all of the characters in thisString
to lower case using the rules of the givenLocale
.String.toUpperCase
(Locale locale) Converts all of the characters in thisString
to upper case using the rules of the givenLocale
. -
Uses of Locale in java.nio.charset
Modifier and TypeMethodDescriptionCharset.displayName
(Locale locale) Returns this charset's human-readable name for the given locale. -
Uses of Locale in java.text
Modifier and TypeMethodDescriptionstatic Locale[]
BreakIterator.getAvailableLocales()
Returns an array of all locales for which theget*Instance
methods of this class can return localized instances.static Locale[]
Collator.getAvailableLocales()
Returns an array of all locales for which thegetInstance
methods of this class can return localized instances.static Locale[]
DateFormat.getAvailableLocales()
Returns an array of all locales for which theget*Instance
methods of this class can return localized instances.static Locale[]
DateFormatSymbols.getAvailableLocales()
Returns an array of all locales for which thegetInstance
methods of this class can return localized instances.static Locale[]
DecimalFormatSymbols.getAvailableLocales()
Returns an array of all locales for which thegetInstance
methods of this class can return localized instances.static Locale[]
ListFormat.getAvailableLocales()
Returns the available locales that support ListFormat.static Locale[]
NumberFormat.getAvailableLocales()
Returns an array of all locales for which theget*Instance
methods of this class can return localized instances.DecimalFormatSymbols.getLocale()
Returns locale used to create this instance.ListFormat.getLocale()
Returns theLocale
of this ListFormat.MessageFormat.getLocale()
Gets the locale that's used when creating or comparing subformats.Modifier and TypeMethodDescriptionstatic BreakIterator
BreakIterator.getCharacterInstance
(Locale locale) Returns a newBreakIterator
instance for character breaks for the given locale.static NumberFormat
NumberFormat.getCompactNumberInstance
(Locale locale, NumberFormat.Style formatStyle) Returns a compact number format for the specifiedlocale
andformatStyle
.static NumberFormat
NumberFormat.getCurrencyInstance
(Locale inLocale) Returns a currency format for the specified locale.static final DateFormat
DateFormat.getDateInstance
(int style, Locale aLocale) Gets the date formatter with the given formatting style for the given locale.static final DateFormat
DateFormat.getDateTimeInstance
(int dateStyle, int timeStyle, Locale aLocale) Gets the date/time formatter with the given formatting styles for the given locale.static Collator
Collator.getInstance
(Locale desiredLocale) Gets the Collator for the desired locale.static final DateFormatSymbols
DateFormatSymbols.getInstance
(Locale locale) Gets theDateFormatSymbols
instance for the specified locale.static final DecimalFormatSymbols
DecimalFormatSymbols.getInstance
(Locale locale) Gets theDecimalFormatSymbols
instance for the specified locale.static ListFormat
ListFormat.getInstance
(Locale locale, ListFormat.Type type, ListFormat.Style style) static NumberFormat
NumberFormat.getInstance
(Locale inLocale) Returns a general-purpose number format for the specified locale.static NumberFormat
NumberFormat.getIntegerInstance
(Locale inLocale) Returns an integer number format for the specified locale.static BreakIterator
BreakIterator.getLineInstance
(Locale locale) Returns a newBreakIterator
instance for line breaks for the given locale.static NumberFormat
NumberFormat.getNumberInstance
(Locale inLocale) Returns a general-purpose number format for the specified locale.static NumberFormat
NumberFormat.getPercentInstance
(Locale inLocale) Returns a percentage format for the specified locale.static BreakIterator
BreakIterator.getSentenceInstance
(Locale locale) Returns a newBreakIterator
instance for sentence breaks for the given locale.static final DateFormat
DateFormat.getTimeInstance
(int style, Locale aLocale) Gets the time formatter with the given formatting style for the given locale.static BreakIterator
BreakIterator.getWordInstance
(Locale locale) Returns a newBreakIterator
instance for word breaks for the given locale.void
Sets 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 aSimpleDateFormat
using the given pattern and the default date format symbols for the given locale. -
Uses of Locale in java.text.spi
Modifier and TypeMethodDescriptionabstract BreakIterator
BreakIteratorProvider.getCharacterInstance
(Locale locale) Returns a newBreakIterator
instance for character breaks for the given locale.NumberFormatProvider.getCompactNumberInstance
(Locale locale, NumberFormat.Style formatStyle) Returns a newNumberFormat
instance which formats a number in its compact form for the specifiedlocale
andformatStyle
.abstract NumberFormat
NumberFormatProvider.getCurrencyInstance
(Locale locale) Returns a newNumberFormat
instance which formats monetary values for the specified locale.abstract DateFormat
DateFormatProvider.getDateInstance
(int style, Locale locale) Returns a newDateFormat
instance which formats date with the given formatting style for the specified locale.abstract DateFormat
DateFormatProvider.getDateTimeInstance
(int dateStyle, int timeStyle, Locale locale) Returns a newDateFormat
instance which formats date and time with the given formatting style for the specified locale.abstract Collator
CollatorProvider.getInstance
(Locale locale) Returns a newCollator
instance for the specified locale.abstract DateFormatSymbols
DateFormatSymbolsProvider.getInstance
(Locale locale) Returns a newDateFormatSymbols
instance for the specified locale.abstract DecimalFormatSymbols
DecimalFormatSymbolsProvider.getInstance
(Locale locale) Returns a newDecimalFormatSymbols
instance for the specified locale.abstract NumberFormat
NumberFormatProvider.getIntegerInstance
(Locale locale) Returns a newNumberFormat
instance which formats integer values for the specified locale.abstract BreakIterator
BreakIteratorProvider.getLineInstance
(Locale locale) Returns a newBreakIterator
instance for line breaks for the given locale.abstract NumberFormat
NumberFormatProvider.getNumberInstance
(Locale locale) Returns a new general-purposeNumberFormat
instance for the specified locale.abstract NumberFormat
NumberFormatProvider.getPercentInstance
(Locale locale) Returns a newNumberFormat
instance which formats percentage values for the specified locale.abstract BreakIterator
BreakIteratorProvider.getSentenceInstance
(Locale locale) Returns a newBreakIterator
instance for sentence breaks for the given locale.abstract DateFormat
DateFormatProvider.getTimeInstance
(int style, Locale locale) Returns a newDateFormat
instance which formats time with the given formatting style for the specified locale.abstract BreakIterator
BreakIteratorProvider.getWordInstance
(Locale locale) Returns a newBreakIterator
instance for word breaks for the given locale. -
Uses of Locale in java.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 of Locale in java.time.chrono
Modifier and TypeMethodDescriptiondefault String
Chronology.getDisplayName
(TextStyle style, Locale locale) Gets the textual representation of this chronology.default String
Era.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.static Chronology
Obtains an instance ofChronology
from a locale. -
Uses of Locale in java.time.format
Modifier and TypeMethodDescriptionDateTimeFormatter.getLocale()
Gets the locale to be used during formatting.Modifier and TypeMethodDescriptionDecimalStyle.getAvailableLocales()
Lists all the locales that are supported.Modifier and TypeMethodDescriptionstatic String
DateTimeFormatterBuilder.getLocalizedDateTimePattern
(String requestedTemplate, Chronology chrono, Locale locale) Returns the formatting pattern for the requested template for a locale and chronology.static String
DateTimeFormatterBuilder.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.static DecimalStyle
Obtains the DecimalStyle for the specified locale.static DateTimeFormatter
Creates a formatter using the specified pattern and locale.DateTimeFormatterBuilder.toFormatter
(Locale locale) Completes this builder by creating theDateTimeFormatter
using the specified locale.DateTimeFormatter.withLocale
(Locale locale) Returns a copy of this formatter with a new locale. -
Uses of Locale in java.time.temporal
Modifier and TypeMethodDescriptiondefault String
TemporalField.getDisplayName
(Locale locale) Gets the display name for the field in the requested locale.static WeekFields
Obtains an instance ofWeekFields
appropriate for a locale. -
Uses of Locale in java.util
Modifier and TypeFieldDescriptionstatic final Locale
Locale.CANADA
Useful constant for country.static final Locale
Locale.CANADA_FRENCH
Useful constant for country.static final Locale
Locale.CHINA
Useful constant for country.static final Locale
Locale.CHINESE
Useful constant for language.static final Locale
Locale.ENGLISH
Useful constant for language.static final Locale
Locale.FRANCE
Useful constant for country.static final Locale
Locale.FRENCH
Useful constant for language.static final Locale
Locale.GERMAN
Useful constant for language.static final Locale
Locale.GERMANY
Useful constant for country.static final Locale
Locale.ITALIAN
Useful constant for language.static final Locale
Locale.ITALY
Useful constant for country.static final Locale
Locale.JAPAN
Useful constant for country.static final Locale
Locale.JAPANESE
Useful constant for language.static final Locale
Locale.KOREA
Useful constant for country.static final Locale
Locale.KOREAN
Useful constant for language.static final Locale
Locale.PRC
Useful constant for country.static final Locale
Locale.ROOT
Useful constant for the root locale.static final Locale
Locale.SIMPLIFIED_CHINESE
Useful constant for language.static final Locale
Locale.TAIWAN
Useful constant for country.static final Locale
Locale.TRADITIONAL_CHINESE
Useful constant for language.static final Locale
Locale.UK
Useful constant for country.static final Locale
Locale.US
Useful constant for country.Modifier and TypeMethodDescriptionLocale.Builder.build()
Returns an instance ofLocale
obtained from the fields set on this builder.static Locale
Locale.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 thegetInstance
methods of this class can return localized instances.static Locale[]
Locale.getAvailableLocales()
Returns an array of installed locales.static Locale
Locale.getDefault()
Gets the current value of thedefault locale
for this instance of the Java Virtual Machine.static Locale
Locale.getDefault
(Locale.Category category) Gets the current value of thedefault locale
for the specified Category for this instance of the Java Virtual Machine.ResourceBundle.Control.getFallbackLocale
(String baseName, Locale locale) Returns aLocale
to be used as a fallback locale for further resource bundle searches by theResourceBundle.getBundle
factory 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.static Locale
Locale.lookup
(List<Locale.LanguageRange> priorityList, Collection<Locale> locales) Returns aLocale
instance for the best-matching language tag using the lookup mechanism defined in RFC 4647.static Locale
Obtains a locale from a language code.static Locale
Obtains a locale from language and country.static Locale
Obtains a locale from language, country and variant.Locale.stripExtensions()
Returns a copy of thisLocale
with no extensions.Modifier and TypeMethodDescriptionLocale.availableLocales()
Returns a stream of installed locales.Locale.filter
(List<Locale.LanguageRange> priorityList, Collection<Locale> locales) Returns a list of matchingLocale
instances using the filtering mechanism defined in RFC 4647.Locale.filter
(List<Locale.LanguageRange> priorityList, Collection<Locale> locales, Locale.FilteringMode mode) Returns a list of matchingLocale
instances using the filtering mechanism defined in RFC 4647.ResourceBundle.Control.getCandidateLocales
(String baseName, Locale locale) Returns aList
ofLocale
s as candidate locales forbaseName
andlocale
.Modifier and TypeMethodDescriptionWrites a formatted string to this object's destination using the specified locale, format string, and arguments.static final ResourceBundle
Gets a resource bundle using the specified base name and locale, and the caller module.static ResourceBundle
ResourceBundle.getBundle
(String baseName, Locale locale, ClassLoader loader) Gets a resource bundle using the specified base name, locale, and class loader.static ResourceBundle
ResourceBundle.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 ResourceBundle
Gets a resource bundle using the specified base name and locale on behalf of the specified module.static final ResourceBundle
ResourceBundle.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 aList
ofLocale
s as candidate locales forbaseName
andlocale
.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 calendarfield
value in the givenstyle
andlocale
.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 specifiedstyle
of thisTimeZone
suitable for presentation to the user in the specifiedlocale
.final String
TimeZone.getDisplayName
(Locale locale) Returns a long standard time name of thisTimeZone
suitable for presentation to the user in the specifiedlocale
.Calendar.getDisplayNames
(int field, int style, Locale locale) Returns aMap
containing all names of the calendarfield
in the givenstyle
andlocale
and 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 aLocale
to be used as a fallback locale for further resource bundle searches by theResourceBundle.getBundle
factory method.static Calendar
Calendar.getInstance
(Locale aLocale) Gets a calendar using the default time zone and specified locale.static Calendar
Calendar.getInstance
(TimeZone zone, Locale aLocale) Gets a calendar with the specified time zone and locale.static Currency
Currency.getInstance
(Locale locale) Returns theCurrency
instance for the country of the given locale.Gets the symbol of this currency for the specified locale.long
ResourceBundle.Control.getTimeToLive
(String baseName, Locale locale) Returns the time-to-live (TTL) value for resource bundles that are loaded under thisResourceBundle.Control
.boolean
ResourceBundle.Control.needsReload
(String baseName, Locale locale, String format, ClassLoader loader, ResourceBundle bundle, long loadTime) Determines if the expiredbundle
in the cache needs to be reloaded based on the loading time given byloadTime
or 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 void
Locale.setDefault
(Locale newLocale) Sets thedefault locale
for this instance of the Java Virtual Machine.static void
Locale.setDefault
(Locale.Category category, Locale newLocale) Sets thedefault locale
for the specified Category for this instance of the Java Virtual Machine.Sets the locale parameter to the givenlocale
.Resets theBuilder
to match the providedlocale
.ResourceBundle.Control.toBundleName
(String baseName, Locale locale) Converts the givenbaseName
andlocale
to 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 matchingLocale
instances using the filtering mechanism defined in RFC 4647.Locale.filter
(List<Locale.LanguageRange> priorityList, Collection<Locale> locales, Locale.FilteringMode mode) Returns a list of matchingLocale
instances using the filtering mechanism defined in RFC 4647.static Locale
Locale.lookup
(List<Locale.LanguageRange> priorityList, Collection<Locale> locales) Returns aLocale
instance for the best-matching language tag using the lookup mechanism defined in RFC 4647.ModifierConstructorDescriptionprotected
Constructs 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 aGregorianCalendar
based on the current time in the default time zone with the given locale.GregorianCalendar
(TimeZone zone, Locale aLocale) Constructs aGregorianCalendar
based on the current time in the given time zone with the given locale. -
Uses of Locale in java.util.spi
Modifier and TypeMethodDescriptionabstract Locale[]
LocaleServiceProvider.getAvailableLocales()
Returns an array of all locales for which this locale service provider can provide localized objects or names.Modifier and TypeMethodDescriptionReturns aResourceBundle
for the givenbaseName
andlocale
.Returns aResourceBundle
for the given bundle name and locale.abstract String
LocaleNameProvider.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 String
LocaleNameProvider.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 String
CalendarNameProvider.getDisplayName
(String calendarType, int field, int value, int style, Locale locale) Returns the string representation (display name) of the calendarfield value
in the givenstyle
andlocale
.CurrencyNameProvider.getDisplayName
(String currencyCode, Locale locale) Returns a name for the currency that is appropriate for display to the user.abstract String
TimeZoneNameProvider.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 aMap
containing all string representations (display names) of theCalendar
field
in the givenstyle
andlocale
and 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 given Unicode 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 given Unicode extension type, and the given locale that is appropriate for display to the user.abstract String
LocaleNameProvider.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 int
CalendarDataProvider.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 zoneID
that's suitable for presentation to the user in the specifiedlocale
.abstract int
CalendarDataProvider.getMinimalDaysInFirstWeek
(Locale locale) Returns the minimal number of days required in the first week of a year.abstract String
Gets the symbol of the given currency code for the specified locale.boolean
LocaleServiceProvider.isSupportedLocale
(Locale locale) Returnstrue
if the givenlocale
is supported by this locale service provider.protected String
AbstractResourceBundleProvider.toBundleName
(String baseName, Locale locale) Returns the bundle name for the givenbaseName
andlocale
that this provider provides. -
Uses of Locale in javax.accessibility
Modifier and TypeMethodDescriptionabstract Locale
AccessibleContext.getLocale()
Gets the locale of the component.Modifier and TypeMethodDescriptionprotected String
AccessibleBundle.toDisplayString
(String name, Locale locale) Obtains the key as a localized string.AccessibleBundle.toDisplayString
(Locale locale) Obtains the key as a localized string. -
Uses of Locale in javax.annotation.processing
-
Uses of Locale in javax.imageio
Modifier and TypeFieldDescriptionprotected Locale[]
ImageReader.availableLocales
An array ofLocale
s which may be used to localize warning messages, ornull
if localization is not supported.protected Locale[]
ImageWriter.availableLocales
An array ofLocale
s that may be used to localize warning messages and compression setting values, ornull
if localization is not supported.protected Locale
ImageReader.locale
The currentLocale
to be used for localization, ornull
if none has been set.protected Locale
ImageWriteParam.locale
ALocale
to be used to localize compression type names and quality descriptions, ornull
to use a defaultLocale
.protected Locale
ImageWriter.locale
The currentLocale
to be used for localization, ornull
if none has been set.Modifier and TypeFieldDescriptionImageReader.warningLocales
AList
of theLocale
s associated with each currently registeredIIOReadWarningListener
, initialized by default tonull
, which is synonymous with an emptyList
.ImageWriter.warningLocales
AList
ofLocale
s, one for each element ofwarningListeners
, initialized by defaultnull
, which is synonymous with an emptyList
.Modifier and TypeMethodDescriptionLocale[]
ImageReader.getAvailableLocales()
Returns an array ofLocale
s that may be used to localize warning listeners and compression settings.Locale[]
ImageWriter.getAvailableLocales()
Returns an array ofLocale
s that may be used to localize warning listeners and compression settings.ImageReader.getLocale()
Returns the currently setLocale
, ornull
if none has been set.ImageWriteParam.getLocale()
Returns the currently setLocale
, ornull
if only a defaultLocale
is supported.ImageWriter.getLocale()
Returns the currently setLocale
, ornull
if none has been set.Modifier and TypeMethodDescriptionvoid
Sets the currentLocale
of thisImageReader
to the given value.void
Sets the currentLocale
of thisImageWriter
to the given value.ModifierConstructorDescriptionImageWriteParam
(Locale locale) Constructs anImageWriteParam
set to use a givenLocale
. -
Uses of Locale in javax.imageio.metadata
Modifier and TypeMethodDescriptionIIOMetadataFormat.getAttributeDescription
(String elementName, String attrName, Locale locale) Returns aString
containing a description of the named attribute, ornull
.IIOMetadataFormatImpl.getAttributeDescription
(String elementName, String attrName, Locale locale) Returns aString
containing a description of the named attribute, ornull
.IIOMetadataFormat.getElementDescription
(String elementName, Locale locale) Returns aString
containing a description of the named element, ornull
.IIOMetadataFormatImpl.getElementDescription
(String elementName, Locale locale) Returns aString
containing a description of the named element, ornull
. -
Uses of Locale in javax.imageio.plugins.bmp
ModifierConstructorDescriptionBMPImageWriteParam
(Locale locale) Constructs aBMPImageWriteParam
set to use a givenLocale
and with default values for all parameters. -
Uses of Locale in javax.imageio.plugins.jpeg
ModifierConstructorDescriptionJPEGImageWriteParam
(Locale locale) Constructs aJPEGImageWriteParam
. -
Uses of Locale in javax.imageio.spi
Modifier and TypeMethodDescriptionabstract String
IIOServiceProvider.getDescription
(Locale locale) Returns a brief, human-readable description of this service provider and its associated implementation. -
Uses of Locale in javax.print.attribute
Modifier and TypeMethodDescriptionTextSyntax.getLocale()
Returns this text attribute's text string's natural language (locale).ModifierConstructorDescriptionprotected
TextSyntax
(String value, Locale locale) Constructs aTextAttribute
with the specified string and locale. -
Uses of Locale in javax.print.attribute.standard
ModifierConstructorDescriptionDocumentName
(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 of Locale in javax.security.auth.callback
-
Uses of Locale in javax.swing
Modifier and TypeMethodDescriptionstatic Locale
JComponent.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.Modifier and TypeMethodDescriptionReturns the value for key associated with the given locale.static Object
Returns an object from the defaults that is appropriate for the given locale.boolean
UIDefaults.getBoolean
(Object key, Locale l) If the value ofkey
for the givenLocale
is boolean, return the boolean value, otherwise return false.static boolean
UIManager.getBoolean
(Object key, Locale l) Returns a boolean from the defaults which is associated with the key value and the givenLocale
.If the value ofkey
for the givenLocale
is aBorder
return it, otherwise returnnull
.static Border
Returns a border from the defaults that is appropriate for the given locale.If the value ofkey
for the givenLocale
is aColor
return it, otherwise returnnull
.static Color
Returns a color from the defaults that is appropriate for the given locale.UIDefaults.getDimension
(Object key, Locale l) If the value ofkey
for the givenLocale
is aDimension
return it, otherwise returnnull
.static Dimension
UIManager.getDimension
(Object key, Locale l) Returns a dimension from the defaults that is appropriate for the given locale.If the value ofkey
for the givenLocale
is aFont
return it, otherwise returnnull
.static Font
Returns a font from the defaults that is appropriate for the given locale.If the value ofkey
for the givenLocale
is anIcon
return it, otherwise returnnull
.static Icon
Returns anIcon
from the defaults that is appropriate for the given locale.If the value ofkey
for the givenLocale
is anInsets
return it, otherwise returnnull
.static Insets
Returns anInsets
object from the defaults that is appropriate for the given locale.int
If the value ofkey
for the givenLocale
is anInteger
return its integer value, otherwise return 0.static int
Returns an integer from the defaults that is appropriate for the given locale.If the value ofkey
for the givenLocale
is aString
return it, otherwise returnnull
.static String
Returns a string from the defaults that is appropriate for the given locale.static void
JComponent.setDefaultLocale
(Locale l) Sets the default locale used to initialize each JComponent's locale property upon creation.void
UIDefaults.setDefaultLocale
(Locale l) Sets the default locale. -
Uses of Locale in javax.swing.table
-
Uses of Locale in javax.tools
Modifier and TypeMethodDescriptionDiagnostic.getMessage
(Locale locale) Returns a localized message for the given locale.DocumentationTool.getStandardFileManager
(DiagnosticListener<? super JavaFileObject> diagnosticListener, Locale locale, Charset charset) Returns a new instance of the standard file manager implementation for this tool.JavaCompiler.getStandardFileManager
(DiagnosticListener<? super JavaFileObject> diagnosticListener, Locale locale, Charset charset) Returns a new instance of the standard file manager implementation for this tool.void
Sets the locale to be applied when formatting diagnostics and other localized data.void
Sets the locale to be applied when formatting diagnostics and other localized data. -
Uses of Locale in javax.xml.datatype
Modifier and TypeMethodDescriptionabstract GregorianCalendar
XMLGregorianCalendar.toGregorianCalendar
(TimeZone timezone, Locale aLocale, XMLGregorianCalendar defaults) Convert thisXMLGregorianCalendar
along with provided parameters to aGregorianCalendar
instance. -
Uses of Locale in jdk.javadoc.doclet
-
Uses of Locale in jdk.jshell
Modifier and TypeMethodDescriptionabstract String
Diag.getMessage
(Locale locale) Returns a localized message for the given locale. -
Uses of Locale in jdk.jshell.tool
Modifier and TypeMethodDescriptionSet the locale. -
Uses of Locale in org.xml.sax
-
Uses of Locale in org.xml.sax.helpers