public class

LocaleData

extends Object
java.lang.Object
   ↳ sun.util.resources.LocaleData

Class Overview

Provides information about and access to resource bundles in the sun.text.resources and sun.util.resources package.

Summary

Public Constructors
LocaleData()
Public Methods
static Locale[] getAvailableLocales()
Returns a list of the installed locales.
static ResourceBundle getCalendarData(Locale locale)
Gets a calendar data resource bundle, using privileges to allow accessing a sun.* package.
static ResourceBundle getCollationData(Locale locale)
Gets a collation data resource bundle, using privileges to allow accessing a sun.* package.
static OpenListResourceBundle getCurrencyNames(Locale locale)
Gets a currency names resource bundle, using privileges to allow accessing a sun.* package.
static ResourceBundle getDateFormatData(Locale locale)
Gets a date format data resource bundle, using privileges to allow accessing a sun.* package.
static OpenListResourceBundle getLocaleNames(Locale locale)
Gets a locale names resource bundle, using privileges to allow accessing a sun.* package.
static ResourceBundle getNumberFormatData(Locale locale)
Gets a number format data resource bundle, using privileges to allow accessing a sun.* package.
static OpenListResourceBundle getTimeZoneNames(Locale locale)
Gets a time zone names resource bundle, using privileges to allow accessing a sun.* package.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public LocaleData ()

Public Methods

public static Locale[] getAvailableLocales ()

Returns a list of the installed locales. Currently, this simply returns the list of locales for which a sun.text.resources.FormatData bundle exists. This bundle family happens to be the one with the broadest locale coverage in the JRE.

public static ResourceBundle getCalendarData (Locale locale)

Gets a calendar data resource bundle, using privileges to allow accessing a sun.* package.

public static ResourceBundle getCollationData (Locale locale)

Gets a collation data resource bundle, using privileges to allow accessing a sun.* package.

public static OpenListResourceBundle getCurrencyNames (Locale locale)

Gets a currency names resource bundle, using privileges to allow accessing a sun.* package.

public static ResourceBundle getDateFormatData (Locale locale)

Gets a date format data resource bundle, using privileges to allow accessing a sun.* package.

public static OpenListResourceBundle getLocaleNames (Locale locale)

Gets a locale names resource bundle, using privileges to allow accessing a sun.* package.

public static ResourceBundle getNumberFormatData (Locale locale)

Gets a number format data resource bundle, using privileges to allow accessing a sun.* package.

public static OpenListResourceBundle getTimeZoneNames (Locale locale)

Gets a time zone names resource bundle, using privileges to allow accessing a sun.* package.