javax.mail.internet

Class MailDateFormat

public class MailDateFormat extends SimpleDateFormat

Formats ths date as specified by draft-ietf-drums-msg-fmt-08 dated January 26, 2000 which supercedes RFC822.

The format used is EEE, d MMM yyyy HH:mm:ss Z and locale is always US-ASCII.

Constructor Summary
MailDateFormat()
Method Summary
StringBufferformat(Date date, StringBuffer buffer, FieldPosition position)
Dateparse(String string, ParsePosition position)
voidsetCalendar(Calendar calendar)
The calendar cannot be set
voidsetNumberFormat(NumberFormat format)
The format cannot be set

Constructor Detail

MailDateFormat

public MailDateFormat()

Method Detail

format

public StringBuffer format(Date date, StringBuffer buffer, FieldPosition position)

parse

public Date parse(String string, ParsePosition position)

setCalendar

public void setCalendar(Calendar calendar)
The calendar cannot be set

Parameters: calendar

Throws: UnsupportedOperationException

setNumberFormat

public void setNumberFormat(NumberFormat format)
The format cannot be set

Parameters: format

Throws: UnsupportedOperationException