|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.mailet.dates.RFC977DateFormat
public class RFC977DateFormat
A thread-safe date formatting class to produce dates formatted in accord with the specifications of RFC 977.
Constructor Summary | |
---|---|
RFC977DateFormat()
Constructor for RFC977DateFormat |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Overrides equals |
java.lang.String |
format(java.util.Date d)
This method returns the long form of the RFC977 Date |
java.util.TimeZone |
getTimeZone()
Gets the time zone. |
int |
hashCode()
Overrides hashCode |
boolean |
isLenient()
Tell whether date/time parsing is to be lenient. |
java.util.Date |
parse(java.lang.String source)
Parses text from the beginning of the given string to produce a date. |
void |
setLenient(boolean lenient)
Specify whether or not date/time parsing is to be lenient. |
void |
setTimeZone(java.util.TimeZone zone)
Sets the time zone of this SynchronizedDateFormat object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RFC977DateFormat()
Method Detail |
---|
public java.lang.String format(java.util.Date d)
format
in interface SimplifiedDateFormat
d
- Date
public java.util.Date parse(java.lang.String source) throws java.text.ParseException
This method is designed to be thread safe, so we wrap our delegated parse method in an appropriate synchronized block.
parse
in interface SimplifiedDateFormat
source
- A String
whose beginning should be parsed.
Date
parsed from the string.
java.text.ParseException
- if the beginning of the specified string
cannot be parsed.public void setTimeZone(java.util.TimeZone zone)
setTimeZone
in interface SimplifiedDateFormat
zone
- the given new time zone.public java.util.TimeZone getTimeZone()
getTimeZone
in interface SimplifiedDateFormat
public void setLenient(boolean lenient)
setLenient
in interface SimplifiedDateFormat
lenient
- when true, parsing is lenientCalendar.setLenient(boolean)
public boolean isLenient()
isLenient
in interface SimplifiedDateFormat
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |