Java Doc for DateFormatSymbols.java in  » Internationalization-Localization » icu4j » com » ibm » icu » text » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Internationalization Localization » icu4j » com.ibm.icu.text 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.ibm.icu.text.DateFormatSymbols

All known Subclasses:   com.ibm.icu.text.ChineseDateFormatSymbols,
DateFormatSymbols
public class DateFormatSymbols implements Serializable,Cloneable(Code)
DateFormatSymbols is a public class for encapsulating localizable date-time formatting data, such as the names of the months, the names of the days of the week, and the time zone data. DateFormat and SimpleDateFormat both use DateFormatSymbols to encapsulate this information.

Typically you shouldn't use DateFormatSymbols directly. Rather, you are encouraged to create a date-time formatter with the DateFormat class's factory methods: getTimeInstance, getDateInstance, or getDateTimeInstance. These methods automatically create a DateFormatSymbols for the formatter so that you don't have to. After the formatter is created, you may modify its format pattern using the setPattern method. For more information about creating formatters using DateFormat's factory methods, see DateFormat .

If you decide to create a date-time formatter with a specific format pattern for a specific locale, you can do so with:

 new SimpleDateFormat(aPattern, new DateFormatSymbols(aLocale)).
 

DateFormatSymbols objects are clonable. When you obtain a DateFormatSymbols object, feel free to modify the date-time formatting data. For instance, you can replace the localized date-time format pattern characters with the ones that you feel easy to remember. Or you can change the representative cities to your favorite ones.

New DateFormatSymbols subclasses may be added to support SimpleDateFormat for date-time formatting for additional locales.
See Also:   DateFormat
See Also:   SimpleDateFormat
See Also:   com.ibm.icu.util.SimpleTimeZone
author:
   Chen-Lieh Huang


Inner Class :class ZoneItem

Field Summary
final public static  intABBREVIATED
     Constant for width.
final public static  intDT_CONTEXT_COUNT
     Constant for context.
final public static  intDT_WIDTH_COUNT
     Constant for width.
final public static  intFORMAT
     Constant for context.
final public static  intNARROW
     Constant for width.
final public static  intSTANDALONE
     Constant for context.
final static  intTIMEZONE_SHORT_GENERICTIMEZONE_SHORT_STANDARDTIMEZONE_SHORT_DAYLIGHTTIMEZONE_LONG_GENERICTIMEZONE_LONG_STANDARDTIMEZONE_LONG_DAYLIGHTTIMEZONE_EXEMPLAR_CITYTIMEZONE_COUNT
    
final public static  intWIDE
     Constant for width.
 Stringampms
     AM and PM strings.
 StringeraNames
     Era name strings.
 Stringeras
     Era strings.
 StringlocalPatternChars
     Localized date-time pattern characters.
final static  intmillisPerHour
     Useful constant for defining timezone offsets.
 Stringmonths
     Month strings.
 StringnarrowEras
     Narrow era names.
 StringnarrowMonths
     Narrow month strings.
 StringnarrowWeekdays
     Narrow weekday strings.
final static  StringpatternChars
     Unlocalized date-time pattern characters.
 Stringquarters
     Full quarter names.
 StringshortMonths
     Short month strings.
 StringshortQuarters
     Abbreviated quarter names.
 StringshortWeekdays
     Short weekday strings.
 StringstandaloneMonths
     Standalone month strings.
 StringstandaloneNarrowMonths
     Standalone narrow month strings.
 StringstandaloneNarrowWeekdays
     Standalone narrow weekday strings.
 StringstandaloneQuarters
     Standalone full quarter names.
 StringstandaloneShortMonths
     Standalone short month strings.
 StringstandaloneShortQuarters
     Standalone abbreviated quarter names.
 StringstandaloneShortWeekdays
     Standalone short weekday strings.
 StringstandaloneWeekdays
     Standalone weekday strings.
 Stringweekdays
     Weekday strings.

Constructor Summary
public  DateFormatSymbols()
     Construct a DateFormatSymbols object by loading format data from resources for the default locale.
public  DateFormatSymbols(Locale locale)
     Construct a DateFormatSymbols object by loading format data from resources for the given locale.
public  DateFormatSymbols(ULocale locale)
     Construct a DateFormatSymbols object by loading format data from resources for the given ulocale.
public  DateFormatSymbols(Calendar cal, Locale locale)
     Get the DateFormatSymbols object that should be used to format a calendar system's dates in the given locale.

Subclassing:
When creating a new Calendar subclass, you must create the ResourceBundle ResourceBundle containing its DateFormatSymbols DateFormatSymbols in a specific place. The resource bundle name is based on the calendar's fully-specified class name, with ".resources" inserted at the end of the package name (just before the class name) and "Symbols" appended to the end. For example, the bundle corresponding to "com.ibm.icu.util.HebrewCalendar" is "com.ibm.icu.impl.data.HebrewCalendarSymbols".

Within the ResourceBundle, this method searches for five keys:

  • DayNames - An array of strings corresponding to each possible value of the DAY_OF_WEEK field.
public  DateFormatSymbols(Calendar cal, ULocale locale)
     Get the DateFormatSymbols object that should be used to format a calendar system's dates in the given locale.

Subclassing:
When creating a new Calendar subclass, you must create the ResourceBundle ResourceBundle containing its DateFormatSymbols DateFormatSymbols in a specific place. The resource bundle name is based on the calendar's fully-specified class name, with ".resources" inserted at the end of the package name (just before the class name) and "Symbols" appended to the end. For example, the bundle corresponding to "com.ibm.icu.util.HebrewCalendar" is "com.ibm.icu.impl.data.HebrewCalendarSymbols".

Within the ResourceBundle, this method searches for five keys:

  • DayNames - An array of strings corresponding to each possible value of the DAY_OF_WEEK field.
public  DateFormatSymbols(Class calendarClass, Locale locale)
     Variant of DateFormatSymbols(Calendar, Locale) that takes the Calendar class instead of a Calandar instance.
public  DateFormatSymbols(Class calendarClass, ULocale locale)
     Variant of DateFormatSymbols(Calendar, ULocale) that takes the Calendar class instead of a Calandar instance.
public  DateFormatSymbols(ResourceBundle bundle, Locale locale)
     Fetch a custom calendar's DateFormatSymbols out of the given resource bundle.
public  DateFormatSymbols(ResourceBundle bundle, ULocale locale)
     Fetch a custom calendar's DateFormatSymbols out of the given resource bundle.

Method Summary
public  Objectclone()
    
public  booleanequals(Object obj)
    
 ZoneItemfindZoneIDTypeValue(String text, int start)
     Package private: used by SimpleDateformat Gets the ZoneItem instance which has zone strings which matches the specified text.
public  String[]getAmPmStrings()
     Gets ampm strings.
public static  ResourceBundlegetDateFormatBundle(Class calendarClass, Locale locale)
     Find the ResourceBundle containing the date format information for a specified calendar subclass in a given locale.
public static  ResourceBundlegetDateFormatBundle(Class calendarClass, ULocale locale)
     Find the ResourceBundle containing the date format information for a specified calendar subclass in a given locale.
public static  ResourceBundlegetDateFormatBundle(Calendar cal, Locale locale)
     Variant of getDateFormatBundle(java.lang.Class, java.util.Locale) that takes a Calendar instance instead of a Calendar class.
public static  ResourceBundlegetDateFormatBundle(Calendar cal, ULocale locale)
     Variant of getDateFormatBundle(java.lang.Class, java.util.Locale) that takes a Calendar instance instead of a Calendar class.
public  String[]getEraNames()
     Gets era name strings.
public  String[]getEras()
     Gets era strings.
public  StringgetLocalPatternChars()
     Gets localized date-time pattern characters.
final public  ULocalegetLocale(ULocale.Type type)
     Return the locale that was used to create this object, or null. This may may differ from the locale requested at the time of this object's creation.
public  String[]getMonths()
     Gets month strings.
public  String[]getMonths(int context, int width)
     Gets month strings.
public  String[]getQuarters(int context, int width)
     Gets quarter strings.
public  String[]getShortMonths()
     Gets short month strings.
public  String[]getShortWeekdays()
     Gets short weekday strings.
public  String[]getWeekdays()
     Gets weekday strings.
public  String[]getWeekdays(int context, int width)
     Gets weekday strings.
final  intgetZoneIndex(String ID)
     Package private: used by SimpleDateFormat Gets the index for the given time zone ID to obtain the timezone strings for formatting.
 StringgetZoneString(String zid, int type)
     Package private: used by SimpleDateFormat.
public  String[][]getZoneStrings()
     Gets timezone strings.
public  inthashCode()
     Override hashCode.
protected  voidinitializeData(ULocale desiredLocale, String type)
    
protected  voidinitializeData(ULocale desiredLocale, CalendarData calData)
    
public  voidsetAmPmStrings(String[] newAmpms)
     Sets ampm strings.
public  voidsetEraNames(String[] newEraNames)
     Sets era name strings.
public  voidsetEras(String[] newEras)
     Sets era strings.
public  voidsetLocalPatternChars(String newLocalPatternChars)
     Sets localized date-time pattern characters.
final  voidsetLocale(ULocale valid, ULocale actual)
     Set information about the locales that were used to create this object.
public  voidsetMonths(String[] newMonths)
     Sets month strings.
public  voidsetMonths(String[] newMonths, int context, int width)
     Sets month strings.
public  voidsetQuarters(String[] newQuarters, int context, int width)
     Sets quarter strings.
public  voidsetShortMonths(String[] newShortMonths)
     Sets short month strings.
public  voidsetShortWeekdays(String[] newShortWeekdays)
     Sets short weekday strings.
public  voidsetWeekdays(String[] newWeekdays, int context, int width)
     Sets weekday strings.
public  voidsetWeekdays(String[] newWeekdays)
     Sets weekday strings.
public  voidsetZoneStrings(String[][] newZoneStrings)
     Sets timezone strings.

Field Detail
ABBREVIATED
final public static int ABBREVIATED(Code)
Constant for width.



DT_CONTEXT_COUNT
final public static int DT_CONTEXT_COUNT(Code)
Constant for context.



DT_WIDTH_COUNT
final public static int DT_WIDTH_COUNT(Code)
Constant for width.



FORMAT
final public static int FORMAT(Code)
Constant for context.



NARROW
final public static int NARROW(Code)
Constant for width.



STANDALONE
final public static int STANDALONE(Code)
Constant for context.



TIMEZONE_SHORT_GENERICTIMEZONE_SHORT_STANDARDTIMEZONE_SHORT_DAYLIGHTTIMEZONE_LONG_GENERICTIMEZONE_LONG_STANDARDTIMEZONE_LONG_DAYLIGHTTIMEZONE_EXEMPLAR_CITYTIMEZONE_COUNT
final static int TIMEZONE_SHORT_GENERICTIMEZONE_SHORT_STANDARDTIMEZONE_SHORT_DAYLIGHTTIMEZONE_LONG_GENERICTIMEZONE_LONG_STANDARDTIMEZONE_LONG_DAYLIGHTTIMEZONE_EXEMPLAR_CITYTIMEZONE_COUNT(Code)
The translation type of the translated zone strings



WIDE
final public static int WIDE(Code)
Constant for width.



ampms
String ampms(Code)
AM and PM strings. For example: "AM" and "PM". An array of 2 strings, indexed by Calendar.AM and Calendar.PM.



eraNames
String eraNames(Code)
Era name strings. For example: "Anno Domini" and "Before Christ". An array of 2 strings, indexed by Calendar.BC and Calendar.AD.



eras
String eras(Code)
Era strings. For example: "AD" and "BC". An array of 2 strings, indexed by Calendar.BC and Calendar.AD.



localPatternChars
String localPatternChars(Code)
Localized date-time pattern characters. For example, a locale may wish to use 'u' rather than 'y' to represent years in its date format pattern strings. This string must be exactly 18 characters long, with the index of the characters described by DateFormat.ERA_FIELD, DateFormat.YEAR_FIELD, etc. Thus, if the string were "Xz...", then localized patterns would use 'X' for era and 'z' for year.



millisPerHour
final static int millisPerHour(Code)
Useful constant for defining timezone offsets.



months
String months(Code)
Month strings. For example: "January", "February", etc. An array of 13 strings (some calendars have 13 months), indexed by Calendar.JANUARY, Calendar.FEBRUARY, etc.



narrowEras
String narrowEras(Code)
Narrow era names. For example: "A" and "B". An array of 2 strings, indexed by Calendar.BC and Calendar.AD.



narrowMonths
String narrowMonths(Code)
Narrow month strings. For example: "J", "F", etc. An array of 13 strings (some calendars have 13 months), indexed by Calendar.JANUARY, Calendar.FEBRUARY, etc.



narrowWeekdays
String narrowWeekdays(Code)
Narrow weekday strings. For example: "S", "M", etc. An array of 8 strings, indexed by Calendar.SUNDAY, Calendar.MONDAY, etc. The element narrowWeekdays[0] is ignored.



patternChars
final static String patternChars(Code)
Unlocalized date-time pattern characters. For example: 'y', 'd', etc. All locales use the same unlocalized pattern characters.



quarters
String quarters(Code)
Full quarter names. For example: "1st Quarter", "2nd Quarter", "3rd Quarter", "4th Quarter". An array of 4 strings, indexed by the month divided by 3.



shortMonths
String shortMonths(Code)
Short month strings. For example: "Jan", "Feb", etc. An array of 13 strings (some calendars have 13 months), indexed by Calendar.JANUARY, Calendar.FEBRUARY, etc.



shortQuarters
String shortQuarters(Code)
Abbreviated quarter names. For example: "Q1", "Q2", "Q3", "Q4". An array of 4 strings indexed by the month divided by 3.



shortWeekdays
String shortWeekdays(Code)
Short weekday strings. For example: "Sun", "Mon", etc. An array of 8 strings, indexed by Calendar.SUNDAY, Calendar.MONDAY, etc. The element shortWeekdays[0] is ignored.



standaloneMonths
String standaloneMonths(Code)
Standalone month strings. For example: "January", "February", etc. An array of 13 strings (some calendars have 13 months), indexed by Calendar.JANUARY, Calendar.FEBRUARY, etc.



standaloneNarrowMonths
String standaloneNarrowMonths(Code)
Standalone narrow month strings. For example: "J", "F", etc. An array of 13 strings (some calendars have 13 months), indexed by Calendar.JANUARY, Calendar.FEBRUARY, etc.



standaloneNarrowWeekdays
String standaloneNarrowWeekdays(Code)
Standalone narrow weekday strings. For example: "S", "M", etc. An array of 8 strings, indexed by Calendar.SUNDAY, Calendar.MONDAY, etc. The element standaloneNarrowWeekdays[0] is ignored.



standaloneQuarters
String standaloneQuarters(Code)
Standalone full quarter names. For example: "1st Quarter", "2nd Quarter", "3rd Quarter", "4th Quarter". An array of 4 strings, indexed by the month divided by 3.



standaloneShortMonths
String standaloneShortMonths(Code)
Standalone short month strings. For example: "Jan", "Feb", etc. An array of 13 strings (some calendars have 13 months), indexed by Calendar.JANUARY, Calendar.FEBRUARY, etc.



standaloneShortQuarters
String standaloneShortQuarters(Code)
Standalone abbreviated quarter names. For example: "Q1", "Q2", "Q3", "Q4". An array of 4 strings indexed by the month divided by 3.



standaloneShortWeekdays
String standaloneShortWeekdays(Code)
Standalone short weekday strings. For example: "Sun", "Mon", etc. An array of 8 strings, indexed by Calendar.SUNDAY, Calendar.MONDAY, etc. The element standaloneShortWeekdays[0] is ignored.



standaloneWeekdays
String standaloneWeekdays(Code)
Standalone weekday strings. For example: "Sunday", "Monday", etc. An array of 8 strings, indexed by Calendar.SUNDAY, Calendar.MONDAY, etc. The element standaloneWeekdays[0] is ignored.



weekdays
String weekdays(Code)
Weekday strings. For example: "Sunday", "Monday", etc. An array of 8 strings, indexed by Calendar.SUNDAY, Calendar.MONDAY, etc. The element weekdays[0] is ignored.




Constructor Detail
DateFormatSymbols
public DateFormatSymbols()(Code)
Construct a DateFormatSymbols object by loading format data from resources for the default locale.
throws:
  java.util.MissingResourceException - if the resources for the default locale cannot befound or cannot be loaded.



DateFormatSymbols
public DateFormatSymbols(Locale locale)(Code)
Construct a DateFormatSymbols object by loading format data from resources for the given locale.
throws:
  java.util.MissingResourceException - if the resources for the specified locale cannot befound or cannot be loaded.



DateFormatSymbols
public DateFormatSymbols(ULocale locale)(Code)
Construct a DateFormatSymbols object by loading format data from resources for the given ulocale.
throws:
  java.util.MissingResourceException - if the resources for the specified locale cannot befound or cannot be loaded.



DateFormatSymbols
public DateFormatSymbols(Calendar cal, Locale locale)(Code)
Get the DateFormatSymbols object that should be used to format a calendar system's dates in the given locale.

Subclassing:
When creating a new Calendar subclass, you must create the ResourceBundle ResourceBundle containing its DateFormatSymbols DateFormatSymbols in a specific place. The resource bundle name is based on the calendar's fully-specified class name, with ".resources" inserted at the end of the package name (just before the class name) and "Symbols" appended to the end. For example, the bundle corresponding to "com.ibm.icu.util.HebrewCalendar" is "com.ibm.icu.impl.data.HebrewCalendarSymbols".

Within the ResourceBundle, this method searches for five keys:

  • DayNames - An array of strings corresponding to each possible value of the DAY_OF_WEEK field. Even though DAY_OF_WEEK starts with SUNDAY = 1, This array is 0-based; the name for Sunday goes in the first position, at index 0. If this key is not found in the bundle, the day names are inherited from the default DateFormatSymbols for the requested locale.
  • DayAbbreviations - An array of abbreviated day names corresponding to the values in the "DayNames" array. If this key is not found in the resource bundle, the "DayNames" values are used instead. If neither key is found, the day abbreviations are inherited from the default DateFormatSymbols for the locale.
  • MonthNames - An array of strings corresponding to each possible value of the MONTH field. If this key is not found in the bundle, the month names are inherited from the default DateFormatSymbols for the requested locale.
  • MonthAbbreviations - An array of abbreviated day names corresponding to the values in the "MonthNames" array. If this key is not found in the resource bundle, the "MonthNames" values are used instead. If neither key is found, the day abbreviations are inherited from the default DateFormatSymbols for the locale.
  • Eras - An array of strings corresponding to each possible value of the ERA field. If this key is not found in the bundle, the era names are inherited from the default DateFormatSymbols for the requested locale.


Parameters:
  cal - The calendar system whose date format symbols are desired.
Parameters:
  locale - The locale whose symbols are desired.
See Also:   DateFormatSymbols.DateFormatSymbols(java.util.Locale)




DateFormatSymbols
public DateFormatSymbols(Calendar cal, ULocale locale)(Code)
Get the DateFormatSymbols object that should be used to format a calendar system's dates in the given locale.

Subclassing:
When creating a new Calendar subclass, you must create the ResourceBundle ResourceBundle containing its DateFormatSymbols DateFormatSymbols in a specific place. The resource bundle name is based on the calendar's fully-specified class name, with ".resources" inserted at the end of the package name (just before the class name) and "Symbols" appended to the end. For example, the bundle corresponding to "com.ibm.icu.util.HebrewCalendar" is "com.ibm.icu.impl.data.HebrewCalendarSymbols".

Within the ResourceBundle, this method searches for five keys:

  • DayNames - An array of strings corresponding to each possible value of the DAY_OF_WEEK field. Even though DAY_OF_WEEK starts with SUNDAY = 1, This array is 0-based; the name for Sunday goes in the first position, at index 0. If this key is not found in the bundle, the day names are inherited from the default DateFormatSymbols for the requested locale.
  • DayAbbreviations - An array of abbreviated day names corresponding to the values in the "DayNames" array. If this key is not found in the resource bundle, the "DayNames" values are used instead. If neither key is found, the day abbreviations are inherited from the default DateFormatSymbols for the locale.
  • MonthNames - An array of strings corresponding to each possible value of the MONTH field. If this key is not found in the bundle, the month names are inherited from the default DateFormatSymbols for the requested locale.
  • MonthAbbreviations - An array of abbreviated day names corresponding to the values in the "MonthNames" array. If this key is not found in the resource bundle, the "MonthNames" values are used instead. If neither key is found, the day abbreviations are inherited from the default DateFormatSymbols for the locale.
  • Eras - An array of strings corresponding to each possible value of the ERA field. If this key is not found in the bundle, the era names are inherited from the default DateFormatSymbols for the requested locale.


Parameters:
  cal - The calendar system whose date format symbols are desired.
Parameters:
  locale - The ulocale whose symbols are desired.
See Also:   DateFormatSymbols.DateFormatSymbols(java.util.Locale)




DateFormatSymbols
public DateFormatSymbols(Class calendarClass, Locale locale)(Code)
Variant of DateFormatSymbols(Calendar, Locale) that takes the Calendar class instead of a Calandar instance.
See Also:   DateFormatSymbols.DateFormatSymbols(Calendar,Locale)



DateFormatSymbols
public DateFormatSymbols(Class calendarClass, ULocale locale)(Code)
Variant of DateFormatSymbols(Calendar, ULocale) that takes the Calendar class instead of a Calandar instance.
See Also:   DateFormatSymbols.DateFormatSymbols(Calendar,Locale)



DateFormatSymbols
public DateFormatSymbols(ResourceBundle bundle, Locale locale)(Code)
Fetch a custom calendar's DateFormatSymbols out of the given resource bundle. Symbols that are not overridden are inherited from the default DateFormatSymbols for the locale.
See Also:   DateFormatSymbols.DateFormatSymbols



DateFormatSymbols
public DateFormatSymbols(ResourceBundle bundle, ULocale locale)(Code)
Fetch a custom calendar's DateFormatSymbols out of the given resource bundle. Symbols that are not overridden are inherited from the default DateFormatSymbols for the locale.
See Also:   DateFormatSymbols.DateFormatSymbols




Method Detail
clone
public Object clone()(Code)
Overrides Cloneable



equals
public boolean equals(Object obj)(Code)
Override equals



findZoneIDTypeValue
ZoneItem findZoneIDTypeValue(String text, int start)(Code)
Package private: used by SimpleDateformat Gets the ZoneItem instance which has zone strings which matches the specified text.
Parameters:
  text - The text which contains a zone string
Parameters:
  start - The start position of zone string in the text A ZonItem instance for the longest matching zonestring.



getAmPmStrings
public String[] getAmPmStrings()(Code)
Gets ampm strings. For example: "AM" and "PM". the weekday strings.



getDateFormatBundle
public static ResourceBundle getDateFormatBundle(Class calendarClass, Locale locale) throws MissingResourceException(Code)
Find the ResourceBundle containing the date format information for a specified calendar subclass in a given locale.

The resource bundle name is based on the calendar's fully-specified class name, with ".resources" inserted at the end of the package name (just before the class name) and "Symbols" appended to the end. For example, the bundle corresponding to "com.ibm.icu.util.HebrewCalendar" is "com.ibm.icu.impl.data.HebrewCalendarSymbols".




getDateFormatBundle
public static ResourceBundle getDateFormatBundle(Class calendarClass, ULocale locale) throws MissingResourceException(Code)
Find the ResourceBundle containing the date format information for a specified calendar subclass in a given locale.

The resource bundle name is based on the calendar's fully-specified class name, with ".resources" inserted at the end of the package name (just before the class name) and "Symbols" appended to the end. For example, the bundle corresponding to "com.ibm.icu.util.HebrewCalendar" is "com.ibm.icu.impl.data.HebrewCalendarSymbols".




getDateFormatBundle
public static ResourceBundle getDateFormatBundle(Calendar cal, Locale locale) throws MissingResourceException(Code)
Variant of getDateFormatBundle(java.lang.Class, java.util.Locale) that takes a Calendar instance instead of a Calendar class.
See Also:   DateFormatSymbols.getDateFormatBundle(java.lang.Class,java.util.Locale)



getDateFormatBundle
public static ResourceBundle getDateFormatBundle(Calendar cal, ULocale locale) throws MissingResourceException(Code)
Variant of getDateFormatBundle(java.lang.Class, java.util.Locale) that takes a Calendar instance instead of a Calendar class.
See Also:   DateFormatSymbols.getDateFormatBundle(java.lang.Class,java.util.Locale)



getEraNames
public String[] getEraNames()(Code)
Gets era name strings. For example: "Anno Domini" and "Before Christ". the era strings.



getEras
public String[] getEras()(Code)
Gets era strings. For example: "AD" and "BC". the era strings.



getLocalPatternChars
public String getLocalPatternChars()(Code)
Gets localized date-time pattern characters. For example: 'u', 't', etc. the localized date-time pattern characters.



getLocale
final public ULocale getLocale(ULocale.Type type)(Code)
Return the locale that was used to create this object, or null. This may may differ from the locale requested at the time of this object's creation. For example, if an object is created for locale en_US_CALIFORNIA, the actual data may be drawn from en (the actual locale), and en_US may be the most specific locale that exists (the valid locale).

Note: This method will be implemented in ICU 3.0; ICU 2.8 contains a partial preview implementation. The * actual locale is returned correctly, but the valid locale is not, in most cases.
Parameters:
  type - type of information requested, either com.ibm.icu.util.ULocale.VALID_LOCALE or com.ibm.icu.util.ULocale.ACTUAL_LOCALE. the information specified by type, or null ifthis object was not constructed from locale data.
See Also:   com.ibm.icu.util.ULocale
See Also:   com.ibm.icu.util.ULocale.VALID_LOCALE
See Also:   com.ibm.icu.util.ULocale.ACTUAL_LOCALE




getMonths
public String[] getMonths()(Code)
Gets month strings. For example: "January", "February", etc. the month strings.



getMonths
public String[] getMonths(int context, int width)(Code)
Gets month strings. For example: "January", "February", etc.
Parameters:
  context - The month context, FORMAT or STANDALONE.
Parameters:
  width - The width or the returned month string,either WIDE, ABBREVIATED, or NARROW. the month strings.



getQuarters
public String[] getQuarters(int context, int width)(Code)
Gets quarter strings. For example: "1st Quarter", "2nd Quarter", etc.
Parameters:
  context - The quarter context, FORMAT or STANDALONE.
Parameters:
  width - The width or the returned quarter string,either WIDE or ABBREVIATED. There are no NARROW quarters. the quarter strings.



getShortMonths
public String[] getShortMonths()(Code)
Gets short month strings. For example: "Jan", "Feb", etc. the short month strings.



getShortWeekdays
public String[] getShortWeekdays()(Code)
Gets short weekday strings. For example: "Sun", "Mon", etc. the short weekday strings. Use Calendar.SUNDAY,Calendar.MONDAY, etc. to index the result array.



getWeekdays
public String[] getWeekdays()(Code)
Gets weekday strings. For example: "Sunday", "Monday", etc. the weekday strings. Use Calendar.SUNDAY,Calendar.MONDAY, etc. to index the result array.



getWeekdays
public String[] getWeekdays(int context, int width)(Code)
Gets weekday strings. For example: "Sunday", "Monday", etc. the weekday strings. Use Calendar.SUNDAY,Calendar.MONDAY, etc. to index the result array.
Parameters:
  context - Formatting context, either FORMAT or STANDALONE.
Parameters:
  width - Width of strings to be returned, eitherWIDE, ABBREVIATED, or NARROW



getZoneIndex
final int getZoneIndex(String ID)(Code)
Package private: used by SimpleDateFormat Gets the index for the given time zone ID to obtain the timezone strings for formatting. The time zone ID is just for programmatic lookup. NOT LOCALIZED!!!
Parameters:
  ID - the given time zone ID. the index of the given time zone ID. Returns -1 ifthe given time zone ID can't be located in the DateFormatSymbols object.
See Also:   com.ibm.icu.util.SimpleTimeZone



getZoneString
String getZoneString(String zid, int type)(Code)
Package private: used by SimpleDateFormat. Gets the string for the specified time zone.
Parameters:
  zid - The time zone ID
Parameters:
  type - The type of zone string The zone string, or null if not available.



getZoneStrings
public String[][] getZoneStrings()(Code)
Gets timezone strings. the timezone strings.



hashCode
public int hashCode()(Code)
Override hashCode. Generates a hash code for the DateFormatSymbols object.



initializeData
protected void initializeData(ULocale desiredLocale, String type)(Code)

Parameters:
  desiredLocale -
Parameters:
  type -



initializeData
protected void initializeData(ULocale desiredLocale, CalendarData calData)(Code)

Parameters:
  desiredLocale -
Parameters:
  calData -



setAmPmStrings
public void setAmPmStrings(String[] newAmpms)(Code)
Sets ampm strings. For example: "AM" and "PM".
Parameters:
  newAmpms - the new ampm strings.



setEraNames
public void setEraNames(String[] newEraNames)(Code)
Sets era name strings. For example: "Anno Domini" and "Before Christ".
Parameters:
  newEraNames - the new era strings.



setEras
public void setEras(String[] newEras)(Code)
Sets era strings. For example: "AD" and "BC".
Parameters:
  newEras - the new era strings.



setLocalPatternChars
public void setLocalPatternChars(String newLocalPatternChars)(Code)
Sets localized date-time pattern characters. For example: 'u', 't', etc.
Parameters:
  newLocalPatternChars - the new localized date-timepattern characters.



setLocale
final void setLocale(ULocale valid, ULocale actual)(Code)
Set information about the locales that were used to create this object. If the object was not constructed from locale data, both arguments should be set to null. Otherwise, neither should be null. The actual locale must be at the same level or less specific than the valid locale. This method is intended for use by factories or other entities that create objects of this class.
Parameters:
  valid - the most specific locale containing any resourcedata, or null
Parameters:
  actual - the locale containing data used to construct thisobject, or null
See Also:   com.ibm.icu.util.ULocale
See Also:   com.ibm.icu.util.ULocale.VALID_LOCALE
See Also:   com.ibm.icu.util.ULocale.ACTUAL_LOCALE



setMonths
public void setMonths(String[] newMonths)(Code)
Sets month strings. For example: "January", "February", etc.
Parameters:
  newMonths - the new month strings.



setMonths
public void setMonths(String[] newMonths, int context, int width)(Code)
Sets month strings. For example: "January", "February", etc.
Parameters:
  newMonths - the new month strings.
Parameters:
  context - The formatting context, FORMAT or STANDALONE.
Parameters:
  width - The width of the month string,either WIDE, ABBREVIATED, or NARROW.



setQuarters
public void setQuarters(String[] newQuarters, int context, int width)(Code)
Sets quarter strings. For example: "1st Quarter", "2nd Quarter", etc.
Parameters:
  newQuarters - the new quarter strings.
Parameters:
  context - The formatting context, FORMAT or STANDALONE.
Parameters:
  width - The width of the quarter string,either WIDE or ABBREVIATED. There are no NARROW quarters.



setShortMonths
public void setShortMonths(String[] newShortMonths)(Code)
Sets short month strings. For example: "Jan", "Feb", etc.
Parameters:
  newShortMonths - the new short month strings.



setShortWeekdays
public void setShortWeekdays(String[] newShortWeekdays)(Code)
Sets short weekday strings. For example: "Sun", "Mon", etc.
Parameters:
  newShortWeekdays - the new short weekday strings. The array shouldbe indexed by Calendar.SUNDAY,Calendar.MONDAY, etc.



setWeekdays
public void setWeekdays(String[] newWeekdays, int context, int width)(Code)
Sets weekday strings. For example: "Sunday", "Monday", etc.
Parameters:
  newWeekdays - The new weekday strings.
Parameters:
  context - The formatting context, FORMAT or STANDALONE.
Parameters:
  width - The width of the strings,either WIDE, ABBREVIATED, or NARROW.



setWeekdays
public void setWeekdays(String[] newWeekdays)(Code)
Sets weekday strings. For example: "Sunday", "Monday", etc.
Parameters:
  newWeekdays - the new weekday strings. The array shouldbe indexed by Calendar.SUNDAY,Calendar.MONDAY, etc.



setZoneStrings
public void setZoneStrings(String[][] newZoneStrings)(Code)
Sets timezone strings.
Parameters:
  newZoneStrings - the new timezone strings.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.