private static class FastDatePrinter.TimeZoneNameRule extends java.lang.Object implements FastDatePrinter.Rule
Inner class to output a time zone name.
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
mDaylight |
private java.util.Locale |
mLocale |
private java.lang.String |
mStandard |
private int |
mStyle |
| Constructor and Description |
|---|
TimeZoneNameRule(java.util.TimeZone timeZone,
java.util.Locale locale,
int style)
Constructs an instance of
TimeZoneNameRule with the specified properties. |
| Modifier and Type | Method and Description |
|---|---|
void |
appendTo(java.lang.Appendable buffer,
java.util.Calendar calendar)
Appends the value of the specified calendar to the output buffer based on the rule implementation.
|
int |
estimateLength()
Returns the estimated length of the result.
|
private final java.util.Locale mLocale
private final int mStyle
private final java.lang.String mStandard
private final java.lang.String mDaylight
TimeZoneNameRule(java.util.TimeZone timeZone,
java.util.Locale locale,
int style)
TimeZoneNameRule with the specified properties.timeZone - the time zonelocale - the localestyle - the stylepublic int estimateLength()
estimateLength in interface FastDatePrinter.Rulepublic void appendTo(java.lang.Appendable buffer,
java.util.Calendar calendar)
throws java.io.IOException
appendTo in interface FastDatePrinter.Rulebuffer - the output buffercalendar - calendar to be appendedjava.io.IOException - if an I/O error occurs