Package org.apache.commons.lang.time
Class FastDateFormat.TimeZoneNameRule
- java.lang.Object
-
- org.apache.commons.lang.time.FastDateFormat.TimeZoneNameRule
-
- All Implemented Interfaces:
FastDateFormat.Rule
- Enclosing class:
- FastDateFormat
private static class FastDateFormat.TimeZoneNameRule extends java.lang.Object implements FastDateFormat.Rule
Inner class to output a time zone name.
-
-
Constructor Summary
Constructors Constructor Description TimeZoneNameRule(java.util.TimeZone timeZone, boolean timeZoneForced, java.util.Locale locale, int style)
Constructs an instance ofTimeZoneNameRule
with the specified properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
mTimeZone
private final java.util.TimeZone mTimeZone
-
mTimeZoneForced
private final boolean mTimeZoneForced
-
mLocale
private final java.util.Locale mLocale
-
mStyle
private final int mStyle
-
mStandard
private final java.lang.String mStandard
-
mDaylight
private final java.lang.String mDaylight
-
-
Constructor Detail
-
TimeZoneNameRule
TimeZoneNameRule(java.util.TimeZone timeZone, boolean timeZoneForced, java.util.Locale locale, int style)
Constructs an instance ofTimeZoneNameRule
with the specified properties.- Parameters:
timeZone
- the time zonetimeZoneForced
- iftrue
the time zone is forced into standard and daylightlocale
- the localestyle
- the style
-
-
Method Detail
-
estimateLength
public int estimateLength()
Returns the estimated lentgh of the result.- Specified by:
estimateLength
in interfaceFastDateFormat.Rule
- Returns:
- the estimated length
-
appendTo
public 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.- Specified by:
appendTo
in interfaceFastDateFormat.Rule
- Parameters:
buffer
- the output buffercalendar
- calendar to be appended
-
-