Пример #1
0
 @Override
 public void setCharset(String charset) throws MessagingException {
   if (mBody instanceof Multipart) {
     ((Multipart) mBody).setCharset(charset);
   } else if (mBody instanceof TextBody) {
     MimeUtility.setCharset(charset, this);
     ((TextBody) mBody).setCharset(charset);
   }
 }
Пример #2
0
 @Override
 public void setEncoding(String encoding) throws UnavailableStorageException {
   if (mBody instanceof Multipart) {
     ((Multipart) mBody).setEncoding(encoding);
   } else if (mBody instanceof TextBody) {
     setHeader(MimeHeader.HEADER_CONTENT_TRANSFER_ENCODING, encoding);
     ((TextBody) mBody).setEncoding(encoding);
   }
 }