JavaMail学习笔记(四)、使用POP3协议接收并解析电子邮件(全)(三)

2014-11-24 08:17:22 · 作者: · 浏览: 1
meUtility.encodeText(String text)方法编码后的文本
* @return 解码后的文本
* @throws UnsupportedEncodingException
*/
public static String decodeText(String encodeText) throws UnsupportedEncodingException {
if (encodeText == null || "".equals(encodeText)) {
return "";
} else {
return MimeUtility.decodeText(encodeText);
}
}
}
测试结果:


作者:xyang81