本文整理了Java中com.fsck.k9.mail.Message.writeTo()
方法的一些代码示例,展示了Message.writeTo()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Message.writeTo()
方法的具体详情如下:
包路径:com.fsck.k9.mail.Message
类名称: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');
内容来源于网络,如有侵权,请联系作者删除!