public final class MimeProcessingUtility
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
addrs2String(javax.mail.internet.InternetAddress[] addrs)
Creates a
String from given array of InternetAddress instances through invoking
InternetAddress.toUnicodeString() |
static java.lang.String |
getFormattedDate(java.util.Date date,
int style,
java.util.Locale locale,
java.util.TimeZone timeZone)
Formats specified date in given style with given locale and time zone.
|
static boolean |
isSpecial(java.lang.String contentType)
Checks if content type matches one of special content types:
text/rfc822-headers
text/vcard
text/x-vcard
text/calendar
text/x-vcalendar
|
public static final java.lang.String getFormattedDate(java.util.Date date,
int style,
java.util.Locale locale,
java.util.TimeZone timeZone)
date - The date to formatstyle - The style to uselocale - The localetimeZone - The time zonepublic static boolean isSpecial(java.lang.String contentType)
text/rfc822-headerstext/vcardtext/x-vcardtext/calendartext/x-vcalendarcontentType - The content typetrue if content type matches special; otherwise falsepublic static java.lang.String addrs2String(javax.mail.internet.InternetAddress[] addrs)
String from given array of InternetAddress instances through invoking
InternetAddress.toUnicodeString()addrs - The array of InternetAddress instancesString