FileDocCategorySizeDatePackage
RFC822DateFormat.javaAPI DocApache James 2.3.12338Fri Jan 12 12:56:34 GMT 2007org.apache.mailet.dates

RFC822DateFormat

public class RFC822DateFormat extends SynchronizedDateFormat
A thread safe wrapper for the javax.mail.internet.MailDateFormat class.

Fields Summary
private static RFC822DateFormat
instance
A static instance of the RFC822DateFormat, used by toString
Constructors Summary
public RFC822DateFormat()
Constructor for RFC822DateFormat

        super(new MailDateFormat());
    
Methods Summary
public static java.lang.StringtoString(java.util.Date d)
This static method allows us to format RFC822 dates without explicitly instantiating an RFC822DateFormat object.

return
java.lang.String
param
d Date
deprecated
This method is not necessary and is preserved for API backwards compatibility. Users of this class should instantiate an instance and use it as they would any other DateFormat object.

        instance = new RFC822DateFormat();
    
        return instance.format(d);