public class CalendarData extends Object
| Constructor and Description |
|---|
CalendarData(ICUResourceBundle b,
String type) |
CalendarData(ULocale loc,
String type)
Construct a CalendarData from the given locale.
|
| Modifier and Type | Method and Description |
|---|---|
ICUResourceBundle |
get(String key)
Load data for calendar.
|
ICUResourceBundle |
get(String key,
String subKey)
Load data for calendar.
|
ICUResourceBundle |
get(String key,
String contextKey,
String subKey)
Load data for calendar.
|
ICUResourceBundle |
get(String key,
String set,
String contextKey,
String subKey)
Load data for calendar.
|
String |
getDateTimePattern()
Returns the default date-time pattern such as
{1}, {0}. |
String |
getDateTimePattern(int style)
Returns the date-time pattern by style where style is one of the style fields defined
in DateFormat.
|
String[] |
getDateTimePatterns() |
String[] |
getEras(String subkey) |
String[] |
getOverrides() |
String[] |
getStringArray(String key) |
String[] |
getStringArray(String key,
String subKey) |
String[] |
getStringArray(String key,
String contextKey,
String subKey) |
ULocale |
getULocale() |
public CalendarData(ULocale loc, String type)
loc - locale to use. The 'calendar' keyword will be ignored.type - calendar type. NULL indicates the gregorian calendar.
No default lookup is done.public CalendarData(ICUResourceBundle b, String type)
public ICUResourceBundle get(String key)
key - Resource key to datapublic ICUResourceBundle get(String key, String subKey)
key - Resource key to datasubKey - Resource key to datapublic ICUResourceBundle get(String key, String contextKey, String subKey)
key - Resource key to datacontextKey - Resource key to datasubKey - Resource key to datapublic ICUResourceBundle get(String key, String set, String contextKey, String subKey)
key - Resource key to dataset - Resource key to datacontextKey - Resource key to datasubKey - Resource key to datapublic String[] getDateTimePatterns()
public String getDateTimePattern()
{1}, {0}.
{1} is always the date and {0} is always the time.public String getDateTimePattern(int style)
getDateTimePattern() would return.style - the style e.g DateFormat.LONG.public String[] getOverrides()
public ULocale getULocale()