1 17 18 package org.apache.james.util; 19 20 import java.util.Date ; 21 import javax.mail.internet.MailDateFormat ; 22 23 27 public class RFC822DateFormat extends SynchronizedDateFormat { 28 31 private static RFC822DateFormat instance; 32 33 static { 34 instance = new RFC822DateFormat(); 35 } 36 37 49 public static String toString(Date d) { 50 return instance.format(d); 51 } 52 53 56 public RFC822DateFormat() { 57 super(new MailDateFormat ()); 58 } 59 } 60 | Popular Tags |