本文整理了Java中com.sun.mail.imap.protocol.BODY
类的一些代码示例,展示了BODY
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。BODY
类的具体详情如下:
包路径:com.sun.mail.imap.protocol.BODY
类名称:BODY
[英]The BODY fetch response item.
[中]正文获取响应项。
代码示例来源:origin: stackoverflow.com
fetch = (FetchResponse) r[i];
body = (BODY) fetch.getItem(0);
is = body.getByteArrayInputStream();
try {
mm = new MimeMessage(session, is);
代码示例来源:origin: camunda/camunda-bpm-platform
if (b == null || ((ba = b.getByteArray()) == null)) {
forceCheckExpunged();
throw new IOException("No content");
代码示例来源:origin: camunda/camunda-bpm-platform
logger.finest("got BODY section " + br.getSection());
if (br.getSection().equalsIgnoreCase(section))
return br; // that's the one!
代码示例来源:origin: camunda/camunda-bpm-platform
} else { // IMAP4rev1
headerStream =
((BODY)item).getByteArrayInputStream();
isHeader = ((BODY)item).isHeader();
代码示例来源:origin: Alfresco/alfresco-repository
MimeMessage message = new MimeMessage(Session.getDefaultInstance(new Properties()), new BufferedInputStream(body.getByteArrayInputStream()));
assertFalse(Arrays.equals(bodyNew.getByteArray().getBytes(), body.getByteArray().getBytes()));
message = new MimeMessage(Session.getDefaultInstance(new Properties()), new BufferedInputStream(bodyNew.getByteArrayInputStream()));
代码示例来源:origin: com.sun.mail/javax.mail
else if (match(BODY.name)) {
if (buffer[index] == '[')
return new BODY(this);
else
return new BODYSTRUCTURE(this);
代码示例来源:origin: com.sun.mail/javax.mail
} else { // IMAP4rev1
headerStream =
((BODY)item).getByteArrayInputStream();
isHeader = ((BODY)item).isHeader();
代码示例来源:origin: camunda/camunda-bpm-platform
else if (match(BODY.name)) {
if (buffer[index] == '[')
return new BODY(this);
else
return new BODYSTRUCTURE(this);
代码示例来源:origin: com.sun.mail/javax.mail
b = p.fetchBody(seqnum, sectionId);
if (b != null)
is = b.getByteArrayInputStream();
} catch (ConnectionException cex) {
throw new FolderClosedException(
代码示例来源:origin: org.glassfish.metro/webservices-extra
} else { // IMAP4rev1
headerStream =
((BODY)item).getByteArrayInputStream();
isHeader = ((BODY)item).isHeader();
代码示例来源:origin: com.sun.mail/javax.mail
if (b == null || ((ba = b.getByteArray()) == null)) {
forceCheckExpunged();
代码示例来源:origin: javax.mail/com.springsource.javax.mail
if (buffer[index+4] == '[') {
i = new BODY(this);
代码示例来源:origin: com.sun.mail/javax.mail
logger.finest("got BODY section " + br.getSection());
if (br.getSection().equalsIgnoreCase(section))
return br; // that's the one!
代码示例来源:origin: com.sun.mail/javax.mail
throw new MessagingException("Failed to fetch headers");
ByteArrayInputStream bis = b.getByteArrayInputStream();
if (bis == null)
throw new MessagingException("Failed to fetch headers");
代码示例来源:origin: com.sun.mail/android-mail
} else { // IMAP4rev1
headerStream =
((BODY)item).getByteArrayInputStream();
isHeader = ((BODY)item).isHeader();
代码示例来源:origin: Alfresco/alfresco-repository
/**
* Returns size of the message
*
* @param folder Folder containing the message
* @param uid Message UID
* @return Returns size of the message
* @throws MessagingException
*/
private static Integer getMessageSize(IMAPFolder folder, final Long uid) throws MessagingException
{
return getMessageBody(folder, uid).getByteArray().getCount();
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.javax.mail
if (buffer[index+4] == '[') {
i = new BODY(this);
代码示例来源:origin: com.sun.mail/jakarta.mail
logger.finest("got BODY section " + br.getSection());
if (br.getSection().equalsIgnoreCase(section))
return br; // that's the one!
代码示例来源:origin: camunda/camunda-bpm-platform
throw new MessagingException("Failed to fetch headers");
ByteArrayInputStream bis = b.getByteArrayInputStream();
if (bis == null)
throw new MessagingException("Failed to fetch headers");
代码示例来源:origin: jboss/jboss-javaee-specs
} else { // IMAP4rev1
headerStream =
((BODY)item).getByteArrayInputStream();
isHeader = ((BODY)item).isHeader();
内容来源于网络,如有侵权,请联系作者删除!