com.sun.mail.imap.protocol.BODY类的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(3.7k)|赞(0)|评价(0)|浏览(177)

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

相关文章