com.fsck.k9.mail.Message.writeTo()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(1.0k)|赞(0)|评价(0)|浏览(284)

本文整理了Java中com.fsck.k9.mail.Message.writeTo()方法的一些代码示例,展示了Message.writeTo()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Message.writeTo()方法的具体详情如下:
包路径:com.fsck.k9.mail.Message
类名称:Message
方法名:writeTo

Message.writeTo介绍

暂无

代码示例

代码示例来源:origin: k9mail/k-9

EOLConvertingOutputStream msgOut = new EOLConvertingOutputStream(
    new BufferedOutputStream(out, 1024));
message.writeTo(msgOut);
msgOut.flush();

代码示例来源:origin: k9mail/k-9

public long calculateSize() {
    try {

      CountingOutputStream out = new CountingOutputStream();
      EOLConvertingOutputStream eolOut = new EOLConvertingOutputStream(out);
      writeTo(eolOut);
      eolOut.flush();
      return out.getCount();
    } catch (IOException e) {
      Timber.e(e, "Failed to calculate a message size");
    } catch (MessagingException e) {
      Timber.e(e, "Failed to calculate a message size");
    }
    return 0;
  }
}

代码示例来源:origin: k9mail/k-9

new LineWrapOutputStream(new SmtpDataStuffing(outputStream), 1000));
message.writeTo(msgOut);
msgOut.endWithCrLfAndFlush();

代码示例来源:origin: k9mail/k-9

message.writeTo(eolOut);
eolOut.write('\r');
eolOut.write('\n');

相关文章