package sun.util.resources;
Provides information about and access to resource bundles in the
sun.text.resources and sun.util.resources package.
- Author(s):
- Asmus Freytag
- Mark Davis
Lazy load available locales.
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.
Gets a calendar data resource bundle, using privileges
to allow accessing a sun.* package.
return getBundle("sun.util.resources.CalendarData", locale); Gets a currency names resource bundle, using privileges
to allow accessing a sun.* package.
Gets a locale names resource bundle, using privileges
to allow accessing a sun.* package.
Gets a time zone names resource bundle, using privileges
to allow accessing a sun.* package.
Gets a collation data resource bundle, using privileges
to allow accessing a sun.* package.
return getBundle("sun.text.resources.CollationData", locale); Gets a date format data resource bundle, using privileges
to allow accessing a sun.* package.
return getBundle("sun.text.resources.FormatData", locale); Gets a number format data resource bundle, using privileges
to allow accessing a sun.* package.
return getBundle("sun.text.resources.FormatData", locale); if (localeString.length() == 0) { if (lstr.length() != 0 && localeString.indexOf(" " + lstr + " ") == -1) { if (baseName == null || locale == null) { boolean isNonEuroResJarExist =
return isNonEuroResJarExist;
String supportedLocaleString = LocaleDataMetaInfo.
if (supportedLocaleString.length() == 0) { int barIndex = supportedLocaleString.indexOf("|"); localeStringTokenizer = new
supportedLocaleString.substring(barIndex + 1));
localeStringTokenizer = new
for (int i = 0; i < locales.length; i++) { int p1 = currentToken.indexOf('_'); p2 = currentToken.indexOf('_', p1 + 1); country = currentToken.substring(p1 + 1, p2);
if (p2 < currentToken.length()) { locales[i] = new Locale(language, country, variant);