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

StringBuffer
format(Date date, StringBuffer buffer, FieldPosition position)
Date
parse(String string, ParsePosition position)
void
setCalendar(Calendar calendar)
The calendar cannot be set
void
setNumberFormat(NumberFormat format)
The format cannot be set

Constructor Details

MailDateFormat

public MailDateFormat()

Method Details

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 -

setNumberFormat

public void setNumberFormat(NumberFormat format)
The format cannot be set
Parameters:
format -