javax.mail.internet
Class MailDateFormat
SimpleDateFormat
javax.mail.internet.MailDateFormat
public class MailDateFormat
extends SimpleDateFormat
A date format that applies the rules specified by the Internet Draft
draft-ietf-drums-msg-fmt-08 dated January 26, 2000.
This class cannot take pattern strings. It always formats the date
based on the above specification.
StringBuffer | format(Date date, StringBuffer buf, FieldPosition field) - Appends the string representation for the specified field to the
given string buffer.
|
Date | parse(String text, ParsePosition pos) - Parses the given date in the format specified by
draft-ietf-drums-msg-fmt-08 in the current TimeZone.
|
void | setCalendar(Calendar newCalendar) - Don't allow setting the calendar.
|
void | setNumberFormat(NumberFormat newNumberFormat) - Don't allow setting the NumberFormat.
|
MailDateFormat
public MailDateFormat()
format
public StringBuffer format(Date date,
StringBuffer buf,
FieldPosition field)
Appends the string representation for the specified field to the
given string buffer. This method should be avoided, use
format(Date)
instead.
date
- the datebuf
- the buffer to append tofield
- the current field position
parse
public Date parse(String text,
ParsePosition pos)
Parses the given date in the format specified by
draft-ietf-drums-msg-fmt-08 in the current TimeZone.
text
- the formatted date to be parsedpos
- the current parse position
setCalendar
public void setCalendar(Calendar newCalendar)
Don't allow setting the calendar.
setNumberFormat
public void setNumberFormat(NumberFormat newNumberFormat)
Don't allow setting the NumberFormat.
© Copyright 2003, 2004
The Free Software Foundation, All rights reserved