private static class FastDateFormat.TimeZoneNameRule extends java.lang.Object implements FastDateFormat.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 |
private java.util.TimeZone |
mTimeZone |
private boolean |
mTimeZoneForced |
Constructor and Description |
---|
TimeZoneNameRule(java.util.TimeZone timeZone,
boolean timeZoneForced,
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.StringBuffer 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 lentgh of the result.
|
private final java.util.TimeZone mTimeZone
private final boolean mTimeZoneForced
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, boolean timeZoneForced, java.util.Locale locale, int style)
TimeZoneNameRule
with the specified properties.timeZone
- the time zonetimeZoneForced
- if true
the time zone is forced into standard and daylightlocale
- the localestyle
- the stylepublic int estimateLength()
estimateLength
in interface FastDateFormat.Rule
public void appendTo(java.lang.StringBuffer buffer, java.util.Calendar calendar)
appendTo
in interface FastDateFormat.Rule
buffer
- the output buffercalendar
- calendar to be appended