类 MimeUtil
java.lang.Object
com.sh.mail.mime4j.util.MimeUtil
Description:
Title:首亨软件 - TSS/CRM等
- 从以下版本开始:
- Aug 16, 2012
-
字段概要
字段 -
方法概要
修饰符和类型方法说明static Stringstatic StringcreateUniqueMessageId(String hostName) Creates a new unique message identifier that can be used in message header field such as Message-ID or In-Reply-To.static StringSplits the specified string into a multiple-line representation with lines no longer than 76 characters (because the line might contain encoded words; see RFC 2047 section 2).static StringformatDate(Date date, TimeZone zone) Formats the specified date into a RFC 822 date-time string.static booleanisBase64Encoding(String pTransferEncoding) static booleanstatic booleanisMultipart(String pMimeType) static booleanisQuotedPrintableEncoded(String pTransferEncoding) static booleanisSameMimeType(String pType1, String pType2) static StringUnfold a multiple-line representation into a single line.
-
字段详细资料
-
方法详细资料
-
isSameMimeType
-
isMessage
-
isMultipart
-
isBase64Encoding
-
isQuotedPrintableEncoded
-
createUniqueBoundary
-
createUniqueMessageId
Creates a new unique message identifier that can be used in message header field such as Message-ID or In-Reply-To. If the given host name is notnullit will be used as suffix for the message ID (following an at sign). The resulting string is enclosed in angle brackets (< and >);- 参数:
hostName- host name to be included in the message ID ornullif no host name should be included.- 返回:
- a new unique message identifier.
-
formatDate
Formats the specified date into a RFC 822 date-time string.- 参数:
date- date to be formatted into a string.zone- the time zone to use ornullto use the default time zone.- 返回:
- the formatted time string.
-
fold
Splits the specified string into a multiple-line representation with lines no longer than 76 characters (because the line might contain encoded words; see RFC 2047 section 2). If the string contains non-whitespace sequences longer than 76 characters a line break is inserted at the whitespace character following the sequence resulting in a line longer than 76 characters.- 参数:
s- string to split.usedCharacters- number of characters already used up. Usually the number of characters for header field name plus colon and one space.- 返回:
- a multiple-line representation of the given string.
-
unfold
Unfold a multiple-line representation into a single line.- 参数:
s- string to unfold.- 返回:
- unfolded string.
-