javax.mail.internet.MimeMultipart.removeBodyPart()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(148)

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

MimeMultipart.removeBodyPart介绍

[英]Remove the part at specified location (starting from 0). Shifts all the parts after the removed part down one.
[中]移除指定位置的零件(从0开始)。将拆下零件后的所有零件向下移动一个。

代码示例

代码示例来源:origin: com.github.sviperll/sviperll-common

@Override
public void removeBodyPart(int index) throws MessagingException {
  super.removeBodyPart(index);
  updateContentType(true);
}

代码示例来源:origin: com.github.sviperll/sviperll-common

@Override
public boolean removeBodyPart(BodyPart part) throws MessagingException {
  boolean res = super.removeBodyPart(part);
  updateContentType(true);
  return res;
}

代码示例来源:origin: com.github.sviperll/chicory-common

@Override
public void removeBodyPart(int index) throws MessagingException {
  super.removeBodyPart(index);
  updateContentType(true);
}

代码示例来源:origin: com.github.sviperll/chicory-core

@Override
public boolean removeBodyPart(BodyPart part) throws MessagingException {
  boolean res = super.removeBodyPart(part);
  updateContentType(true);
  return res;
}

代码示例来源:origin: com.github.sviperll/chicory-core

@Override
public void removeBodyPart(int index) throws MessagingException {
  super.removeBodyPart(index);
  updateContentType(true);
}

代码示例来源:origin: com.github.sviperll/chicory-common

@Override
public boolean removeBodyPart(BodyPart part) throws MessagingException {
  boolean res = super.removeBodyPart(part);
  updateContentType(true);
  return res;
}

代码示例来源:origin: org.evolvis.bsi/kolab-ws

public static void
IMAPMimeMultipart_removeBodyPart(MimeMultipart multipart, int index)
throws MessagingException
{
  if (!Profiler.INSTANCE.isActive()) // only needed for better performance
    multipart.removeBodyPart(index);
  else
    profileInvokeMExcep(multipart, "removeBodyPart", index);
}

相关文章