- All Known Subinterfaces:
DatePattern.NumberRule
- Enclosing class:
DatePattern
public static interface DatePattern.Rule
日期格式化规则接口。
-
Method Summary
Modifier and TypeMethodDescriptionvoidappendTo(Appendable buf, Calendar calendar) 根据规则将日历值追加到输出缓冲区。int估算格式化结果的长度。
-
Method Details
-
estimateLength
int estimateLength()估算格式化结果的长度。- Returns:
- 估算长度
-
appendTo
根据规则将日历值追加到输出缓冲区。- Parameters:
buf- 输出缓冲区calendar- 日历对象- Throws:
IOException- 如果发生I/O错误
-