| com.ibm.icu.text.UFormat com.ibm.icu.text.DateFormat com.ibm.icu.text.SimpleDateFormat com.ibm.icu.text.ChineseDateFormat
ChineseDateFormat | public class ChineseDateFormat extends SimpleDateFormat (Code) | | A concrete
DateFormat for
com.ibm.icu.util.ChineseCalendar .
This class handles a ChineseCalendar -specific field,
ChineseCalendar.IS_LEAP_MONTH . It also redefines the
handling of two fields, ERA and YEAR . The
former is displayed numerically, instead of symbolically, since it is
the numeric cycle number in ChineseCalendar . The latter is
numeric, as before, but has no special 2-digit Y2K behavior.
With regard to ChineseCalendar.IS_LEAP_MONTH , this
class handles parsing specially. If no string symbol is found at all,
this is taken as equivalent to an IS_LEAP_MONTH value of
zero. This allows formats to display a special string (e.g., "*") for
leap months, but no string for normal months.
Summary of field changes vs.
SimpleDateFormat :
Symbol Meaning Presentation Example
------ ------- ------------ -------
G cycle (Number) 78
y year of cycle (1..60) (Number) 17
l is leap month (Text) 4637
See Also: com.ibm.icu.util.ChineseCalendar See Also: ChineseDateFormatSymbols author: Alan Liu |
Method Summary | |
protected void | subFormat(StringBuffer buf, char ch, int count, int beginOffset, FieldPosition pos, Calendar cal) | protected int | subParse(String text, int start, char ch, int count, boolean obeyCount, boolean allowNegative, boolean[] ambiguousYear, Calendar cal) |
serialVersionUID | final static long serialVersionUID(Code) | | |
ChineseDateFormat | public ChineseDateFormat(String pattern, Locale locale)(Code) | | Construct a ChineseDateFormat from a date format pattern and locale
Parameters: pattern - the pattern Parameters: locale - the locale |
ChineseDateFormat | public ChineseDateFormat(String pattern, ULocale locale)(Code) | | Construct a ChineseDateFormat from a date format pattern and locale
Parameters: pattern - the pattern Parameters: locale - the locale |
subParse | protected int subParse(String text, int start, char ch, int count, boolean obeyCount, boolean allowNegative, boolean[] ambiguousYear, Calendar cal)(Code) | | |
Fields inherited from com.ibm.icu.text.SimpleDateFormat | final static int currentSerialVersion(Code)(Java Doc)
|
Methods inherited from com.ibm.icu.text.SimpleDateFormat | public void applyLocalizedPattern(String pattern)(Code)(Java Doc) public void applyPattern(String pattern)(Code)(Java Doc) public Object clone()(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) public StringBuffer format(Calendar cal, StringBuffer toAppendTo, FieldPosition pos)(Code)(Java Doc) public Date get2DigitYearStart()(Code)(Java Doc) public DateFormatSymbols getDateFormatSymbols()(Code)(Java Doc) protected DateFormatSymbols getSymbols()(Code)(Java Doc) public int hashCode()(Code)(Java Doc) protected int matchQuarterString(String text, int start, int field, String[] data, Calendar cal)(Code)(Java Doc) protected int matchString(String text, int start, int field, String[] data, Calendar cal)(Code)(Java Doc) public void parse(String text, Calendar cal, ParsePosition parsePos)(Code)(Java Doc) public void set2DigitYearStart(Date startDate)(Code)(Java Doc) public void setDateFormatSymbols(DateFormatSymbols newFormatSymbols)(Code)(Java Doc) public void setNumberFormat(NumberFormat newNumberFormat)(Code)(Java Doc) protected String subFormat(char ch, int count, int beginOffset, FieldPosition pos, DateFormatSymbols formatData, Calendar cal) throws IllegalArgumentException(Code)(Java Doc) protected void subFormat(StringBuffer buf, char ch, int count, int beginOffset, FieldPosition pos, Calendar cal)(Code)(Java Doc) protected int subParse(String text, int start, char ch, int count, boolean obeyCount, boolean allowNegative, boolean[] ambiguousYear, Calendar cal)(Code)(Java Doc) public String toLocalizedPattern()(Code)(Java Doc) public String toPattern()(Code)(Java Doc) protected void zeroPaddingNumber(StringBuffer buf, int value, int minDigits, int maxDigits)(Code)(Java Doc) protected String zeroPaddingNumber(long value, int minDigits, int maxDigits)(Code)(Java Doc)
|
Methods inherited from com.ibm.icu.text.DateFormat | public Object clone()(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) final public StringBuffer format(Object obj, StringBuffer toAppendTo, FieldPosition fieldPosition)(Code)(Java Doc) abstract public StringBuffer format(Calendar cal, StringBuffer toAppendTo, FieldPosition fieldPosition)(Code)(Java Doc) public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition)(Code)(Java Doc) final public String format(Date date)(Code)(Java Doc) public static Locale[] getAvailableLocales()(Code)(Java Doc) public static ULocale[] getAvailableULocales()(Code)(Java Doc) public Calendar getCalendar()(Code)(Java Doc) final public static DateFormat getDateInstance()(Code)(Java Doc) final public static DateFormat getDateInstance(int style)(Code)(Java Doc) final public static DateFormat getDateInstance(int style, Locale aLocale)(Code)(Java Doc) final public static DateFormat getDateInstance(int style, ULocale locale)(Code)(Java Doc) final public static DateFormat getDateInstance(Calendar cal, int dateStyle, Locale locale)(Code)(Java Doc) final public static DateFormat getDateInstance(Calendar cal, int dateStyle, ULocale locale)(Code)(Java Doc) final public static DateFormat getDateInstance(Calendar cal, int dateStyle)(Code)(Java Doc) final public static DateFormat getDateTimeInstance()(Code)(Java Doc) final public static DateFormat getDateTimeInstance(int dateStyle, int timeStyle)(Code)(Java Doc) final public static DateFormat getDateTimeInstance(int dateStyle, int timeStyle, Locale aLocale)(Code)(Java Doc) final public static DateFormat getDateTimeInstance(int dateStyle, int timeStyle, ULocale locale)(Code)(Java Doc) final public static DateFormat getDateTimeInstance(Calendar cal, int dateStyle, int timeStyle, Locale locale)(Code)(Java Doc) final public static DateFormat getDateTimeInstance(Calendar cal, int dateStyle, int timeStyle, ULocale locale)(Code)(Java Doc) final public static DateFormat getDateTimeInstance(Calendar cal, int dateStyle, int timeStyle)(Code)(Java Doc) final public static DateFormat getInstance()(Code)(Java Doc) final public static DateFormat getInstance(Calendar cal, Locale locale)(Code)(Java Doc) final public static DateFormat getInstance(Calendar cal, ULocale locale)(Code)(Java Doc) final public static DateFormat getInstance(Calendar cal)(Code)(Java Doc) public NumberFormat getNumberFormat()(Code)(Java Doc) final public static DateFormat getTimeInstance()(Code)(Java Doc) final public static DateFormat getTimeInstance(int style)(Code)(Java Doc) final public static DateFormat getTimeInstance(int style, Locale aLocale)(Code)(Java Doc) final public static DateFormat getTimeInstance(int style, ULocale locale)(Code)(Java Doc) final public static DateFormat getTimeInstance(Calendar cal, int timeStyle, Locale locale)(Code)(Java Doc) final public static DateFormat getTimeInstance(Calendar cal, int timeStyle, ULocale locale)(Code)(Java Doc) final public static DateFormat getTimeInstance(Calendar cal, int timeStyle)(Code)(Java Doc) public TimeZone getTimeZone()(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public boolean isLenient()(Code)(Java Doc) public Date parse(String text) throws ParseException(Code)(Java Doc) abstract public void parse(String text, Calendar cal, ParsePosition pos)(Code)(Java Doc) public Date parse(String text, ParsePosition pos)(Code)(Java Doc) public Object parseObject(String source, ParsePosition pos)(Code)(Java Doc) public void setCalendar(Calendar newCalendar)(Code)(Java Doc) public void setLenient(boolean lenient)(Code)(Java Doc) public void setNumberFormat(NumberFormat newNumberFormat)(Code)(Java Doc) public void setTimeZone(TimeZone zone)(Code)(Java Doc)
|
|
|