/** * @param pattern {@link java.text.SimpleDateFormat} compatible pattern * @param timeZone optional time zone, overrides time zone of formatted * date * @param locale optional locale, overrides system locale * @param symbols optional date format symbols, overrides symbols for * provided locale */ private FastDateFormat(String pattern, TimeZone timeZone, Locale locale, DateFormatSymbols symbols) throws IllegalArgumentException { if (locale == null) { locale = Locale.getDefault(); } mPattern = pattern; mTimeZone = timeZone; mLocale = locale; if (symbols == null) { symbols = new DateFormatSymbols(locale); } List rulesList = parse(pattern, timeZone, locale, symbols); mRules = (Rule[])rulesList.toArray(new Rule[rulesList.size()]); int len = 0; for (int i=mRules.length; --i >= 0; ) { len += mRules[i].estimateLength(); } mMaxLengthEstimate = len; }
/** * @param pattern {@link java.text.SimpleDateFormat} compatible pattern * @param timeZone optional time zone, overrides time zone of formatted * date * @param locale optional locale, overrides system locale * @param symbols optional date format symbols, overrides symbols for * provided locale */ private FastDateFormat(String pattern, TimeZone timeZone, Locale locale, DateFormatSymbols symbols) throws IllegalArgumentException { if (locale == null) { locale = Locale.getDefault(); } mPattern = pattern; mTimeZone = timeZone; mLocale = locale; if (symbols == null) { symbols = new DateFormatSymbols(locale); } List rulesList = parse(pattern, timeZone, locale, symbols); mRules = (Rule[])rulesList.toArray(new Rule[rulesList.size()]); int len = 0; for (int i=mRules.length; --i >= 0; ) { len += mRules[i].estimateLength(); } mMaxLengthEstimate = len; }
/** * @param pattern {@link java.text.SimpleDateFormat} compatible pattern * @param timeZone optional time zone, overrides time zone of formatted * date * @param locale optional locale, overrides system locale * @param symbols optional date format symbols, overrides symbols for * provided locale */ private FastDateFormat(String pattern, TimeZone timeZone, Locale locale, DateFormatSymbols symbols) throws IllegalArgumentException { if (locale == null) { locale = Locale.getDefault(); } mPattern = pattern; mTimeZone = timeZone; mLocale = locale; if (symbols == null) { symbols = new DateFormatSymbols(locale); } List rulesList = parse(pattern, timeZone, locale, symbols); mRules = (Rule[])rulesList.toArray(new Rule[rulesList.size()]); int len = 0; for (int i=mRules.length; --i >= 0; ) { len += mRules[i].estimateLength(); } mMaxLengthEstimate = len; }
/** * @param pattern {@link java.text.SimpleDateFormat} compatible pattern * @param timeZone optional time zone, overrides time zone of formatted * date * @param locale optional locale, overrides system locale * @param symbols optional date format symbols, overrides symbols for * provided locale */ private FastDateFormat(String pattern, TimeZone timeZone, Locale locale, DateFormatSymbols symbols) throws IllegalArgumentException { if (locale == null) { locale = Locale.getDefault(); } mPattern = pattern; mTimeZone = timeZone; mLocale = locale; if (symbols == null) { symbols = new DateFormatSymbols(locale); } List rulesList = parse(pattern, timeZone, locale, symbols); mRules = (Rule[])rulesList.toArray(new Rule[rulesList.size()]); int len = 0; for (int i=mRules.length; --i >= 0; ) { len += mRules[i].estimateLength(); } mMaxLengthEstimate = len; }
private StringBuffer applyRules(Calendar calendar, StringBuffer buf) { Rule[] rules = mRules; int len = mRules.length; for (int i=0; i<len; i++) { rules[i].appendTo(buf, calendar); } return buf; }
private StringBuffer applyRules(Calendar calendar, StringBuffer buf) { Rule[] rules = mRules; int len = mRules.length; for (int i=0; i<len; i++) { rules[i].appendTo(buf, calendar); } return buf; }
private StringBuffer applyRules(Calendar calendar, StringBuffer buf) { Rule[] rules = mRules; int len = mRules.length; for (int i=0; i<len; i++) { rules[i].appendTo(buf, calendar); } return buf; }
private StringBuffer applyRules(Calendar calendar, StringBuffer buf) { Rule[] rules = mRules; int len = mRules.length; for (int i=0; i<len; i++) { rules[i].appendTo(buf, calendar); } return buf; }