| |
|
| java.lang.Object org.apache.mailet.dates.RFC977DateFormat
RFC977DateFormat | public class RFC977DateFormat implements SimplifiedDateFormat(Code) | | A thread-safe date formatting class to produce dates formatted in accord with the
specifications of RFC 977.
|
Method Summary | |
public boolean | equals(Object obj) | public String | format(Date d) | public TimeZone | getTimeZone() Gets the time zone. | public int | hashCode() | public boolean | isLenient() Tell whether date/time parsing is to be lenient. | public Date | parse(String source) Parses text from the beginning of the given string to produce a date.
The method may not use the entire text of the given string.
This method is designed to be thread safe, so we wrap our delegated
parse method in an appropriate synchronized block.
Parameters: source - A String whose beginning should be parsed. | public void | setLenient(boolean lenient) Specify whether or not date/time parsing is to be lenient. | public void | setTimeZone(TimeZone zone) Sets the time zone of this SynchronizedDateFormat object. |
RFC977DateFormat | public RFC977DateFormat()(Code) | | Constructor for RFC977DateFormat
|
equals | public boolean equals(Object obj)(Code) | | Overrides equals
|
format | public String format(Date d)(Code) | | This method returns the long form of the RFC977 Date
java.lang.String Parameters: d - Date |
getTimeZone | public TimeZone getTimeZone()(Code) | | Gets the time zone.
the time zone associated with this SynchronizedDateFormat. |
hashCode | public int hashCode()(Code) | | Overrides hashCode
|
isLenient | public boolean isLenient()(Code) | | Tell whether date/time parsing is to be lenient.
whether this SynchronizedDateFormat is lenient. |
parse | public Date parse(String source) throws ParseException(Code) | | Parses text from the beginning of the given string to produce a date.
The method may not use the entire text of the given string.
This method is designed to be thread safe, so we wrap our delegated
parse method in an appropriate synchronized block.
Parameters: source - A String whose beginning should be parsed. A Date parsed from the string. throws: ParseException - if the beginning of the specified stringcannot be parsed. |
setLenient | public void setLenient(boolean lenient)(Code) | | Specify whether or not date/time parsing is to be lenient. With
lenient parsing, the parser may use heuristics to interpret inputs that
do not precisely match this object's format. With strict parsing,
inputs must match this object's format.
Parameters: lenient - when true, parsing is lenient See Also: java.util.Calendar.setLenient |
setTimeZone | public void setTimeZone(TimeZone zone)(Code) | | Sets the time zone of this SynchronizedDateFormat object.
Parameters: zone - the given new time zone. |
|
|
|