All Packages Class Hierarchy This Package Previous Next Index
Class java.text.resources.LocaleData
java.lang.Object
|
+----java.util.ResourceBundle
|
+----java.text.resources.LocaleData
- public class LocaleData
- extends ResourceBundle
An internal data warehouse for information (locale elements) needed to
implement locale dependent formatting for the standard set of locales
The current implementation utilizes a class LocaleElements which is
created from plain text source file(s) by a small compiler (LocaleTool)
Example of use:
Locale desiredLocale = new Locale("DA","DK","");
ResourceBundle resource = ResourceBundle.load("java.util.LocaleElements",
desiredLocale);
// Pass one of the following:
"LocaleString", // locale id based on iso codes
"LocaleID", // Windows id
"ShortLanguage", // iso-3 abbrev lang name
"ShortCountry", // iso-3 abbrev country name
"Languages", // language names
"Countries", // country names
"MonthNames", // ARRAY january
"MonthAbbreviations", // ARRAY abb january
"DayNames", // ARRAY Monday
"DayAbbreviations", // ARRAY abb Monday
"AmPmMarkers", // ARRAY am marker
"Eras", // era strings
"NumberPatterns", // ARRAY decimal pattern
"CurrencyElements", // ARRAY local currency symbol
"DateTimePatterns", // ARRAY full time pattern
"DateTimeElements", // ARRAY first day of week
"CollationElements", // collation order
String myString string = resource.getString(LocaleString);
// or
String[] myStrings strings = resource.getStringArray(LocaleString);
-
LocaleData()
-
-
getAvailableLocales(String)
-
-
getKeys()
- Implementation of ResourceBundle.getKeys.
-
handleGetObject(String)
- Get an object from a ResourceBundle.
-
init(String[])
-
LocaleData
public LocaleData()
handleGetObject
public Object handleGetObject(String key)
- Get an object from a ResourceBundle.
- Overrides:
- handleGetObject in class ResourceBundle
getAvailableLocales
public static Locale[] getAvailableLocales(String key)
getKeys
public Enumeration getKeys()
- Implementation of ResourceBundle.getKeys.
- Overrides:
- getKeys in class ResourceBundle
init
protected void init(String data[])
All Packages Class Hierarchy This Package Previous Next Index