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);
 


Constructor Index

 o LocaleData()

Method Index

 o getAvailableLocales(String)
 o getKeys()
Implementation of ResourceBundle.getKeys.
 o handleGetObject(String)
Get an object from a ResourceBundle.
 o init(String[])

Constructors

 o LocaleData
 public LocaleData()

Methods

 o handleGetObject
 public Object handleGetObject(String key)
Get an object from a ResourceBundle.

Overrides:
handleGetObject in class ResourceBundle
 o getAvailableLocales
 public static Locale[] getAvailableLocales(String key)
 o getKeys
 public Enumeration getKeys()
Implementation of ResourceBundle.getKeys.

Overrides:
getKeys in class ResourceBundle
 o init
 protected void init(String data[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index