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
Inner class to output a time zone name.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTimeZoneNameRule(TimeZone timeZone, boolean timeZoneForced, Locale locale, int style) Constructs an instance ofTimeZoneNameRulewith the specified properties. -
Method Summary
Modifier and TypeMethodDescriptionvoidappendTo(StringBuffer buffer, Calendar calendar) Appends the value of the specified calendar to the output buffer based on the rule implementation.intReturns the estimated lentgh of the result.
-
Field Details
-
mTimeZone
-
mTimeZoneForced
private final boolean mTimeZoneForced -
mLocale
-
mStyle
private final int mStyle -
mStandard
-
mDaylight
-
-
Constructor Details
-
TimeZoneNameRule
Constructs an instance ofTimeZoneNameRulewith the specified properties.- Parameters:
timeZone- the time zonetimeZoneForced- iftruethe time zone is forced into standard and daylightlocale- the localestyle- the style
-
-
Method Details
-
estimateLength
public int estimateLength()Returns the estimated lentgh of the result.- Specified by:
estimateLengthin interfaceFastDateFormat.Rule- Returns:
- the estimated length
-
appendTo
Appends the value of the specified calendar to the output buffer based on the rule implementation.- Specified by:
appendToin interfaceFastDateFormat.Rule- Parameters:
buffer- the output buffercalendar- calendar to be appended
-