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

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

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

Multipart.removeBodyPart介绍

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

代码示例

代码示例来源:origin: camunda/camunda-bpm-platform

/**
 * Remove the specified part from the multipart message.
 * Shifts all the parts after the removed part down one.
 *
 * @param   part    The part to remove
 * @return        true if part removed, false otherwise
 * @exception    MessagingException if no such Part exists
 * @exception    IllegalWriteException if the underlying
 *            implementation does not support modification
 *            of existing values
 */
public boolean removeBodyPart(BodyPart part) throws MessagingException {
parse();
return super.removeBodyPart(part);
}

代码示例来源:origin: camunda/camunda-bpm-platform

/**
 * Remove the part at specified location (starting from 0).
 * Shifts all the parts after the removed part down one.
 *
 * @param   index    Index of the part to remove
 * @exception       IndexOutOfBoundsException if the given index
 *            is out of range.
 * @exception    IllegalWriteException if the underlying
 *            implementation does not support modification
 *            of existing values
 * @exception    MessagingException for other failures
 */
public void removeBodyPart(int index) throws MessagingException {
parse();
super.removeBodyPart(index);
}

代码示例来源:origin: com.sun.mail/javax.mail

/**
 * Remove the specified part from the multipart message.
 * Shifts all the parts after the removed part down one.
 *
 * @param   part    The part to remove
 * @return        true if part removed, false otherwise
 * @exception    MessagingException if no such Part exists
 * @exception    IllegalWriteException if the underlying
 *            implementation does not support modification
 *            of existing values
 */
@Override
public boolean removeBodyPart(BodyPart part) throws MessagingException {
parse();
return super.removeBodyPart(part);
}

代码示例来源:origin: com.sun.mail/javax.mail

/**
 * Remove the part at specified location (starting from 0).
 * Shifts all the parts after the removed part down one.
 *
 * @param   index    Index of the part to remove
 * @exception       IndexOutOfBoundsException if the given index
 *            is out of range.
 * @exception    IllegalWriteException if the underlying
 *            implementation does not support modification
 *            of existing values
 * @exception    MessagingException for other failures
 */
@Override
public void removeBodyPart(int index) throws MessagingException {
parse();
super.removeBodyPart(index);
}

代码示例来源:origin: javax.mail/com.springsource.javax.mail

/**
 * Remove the specified part from the multipart message.
 * Shifts all the parts after the removed part down one.
 *
 * @param   part    The part to remove
 * @return        true if part removed, false otherwise
 * @exception    MessagingException if no such Part exists
 * @exception    IllegalWriteException if the underlying
 *            implementation does not support modification
 *            of existing values
 */
public boolean removeBodyPart(BodyPart part) throws MessagingException {
parse();
return super.removeBodyPart(part);
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.javax.mail

/**
 * Remove the specified part from the multipart message.
 * Shifts all the parts after the removed part down one.
 *
 * @param   part    The part to remove
 * @return        true if part removed, false otherwise
 * @exception    MessagingException if no such Part exists
 * @exception    IllegalWriteException if the underlying
 *            implementation does not support modification
 *            of existing values
 */
public boolean removeBodyPart(BodyPart part) throws MessagingException {
parse();
return super.removeBodyPart(part);
}

代码示例来源:origin: javax.mail/javax.mail-api

/**
 * Remove the specified part from the multipart message.
 * Shifts all the parts after the removed part down one.
 *
 * @param   part    The part to remove
 * @return        true if part removed, false otherwise
 * @exception    MessagingException if no such Part exists
 * @exception    IllegalWriteException if the underlying
 *            implementation does not support modification
 *            of existing values
 */
@Override
public boolean removeBodyPart(BodyPart part) throws MessagingException {
parse();
return super.removeBodyPart(part);
}

代码示例来源:origin: com.sun.mail/mailapi

/**
 * Remove the part at specified location (starting from 0).
 * Shifts all the parts after the removed part down one.
 *
 * @param   index    Index of the part to remove
 * @exception       IndexOutOfBoundsException if the given index
 *            is out of range.
 * @exception    IllegalWriteException if the underlying
 *            implementation does not support modification
 *            of existing values
 * @exception    MessagingException for other failures
 */
@Override
public void removeBodyPart(int index) throws MessagingException {
parse();
super.removeBodyPart(index);
}

代码示例来源:origin: javax.mail/com.springsource.javax.mail

/**
 * Remove the part at specified location (starting from 0).
 * Shifts all the parts after the removed part down one.
 *
 * @param   index    Index of the part to remove
 * @exception    MessagingException
 * @exception       IndexOutOfBoundsException if the given index
 *            is out of range.
 * @exception    IllegalWriteException if the underlying
 *            implementation does not support modification
 *            of existing values
 */
public void removeBodyPart(int index) throws MessagingException {
parse();
super.removeBodyPart(index);
}

代码示例来源:origin: com.sun.mail/mailapi

/**
 * Remove the specified part from the multipart message.
 * Shifts all the parts after the removed part down one.
 *
 * @param   part    The part to remove
 * @return        true if part removed, false otherwise
 * @exception    MessagingException if no such Part exists
 * @exception    IllegalWriteException if the underlying
 *            implementation does not support modification
 *            of existing values
 */
@Override
public boolean removeBodyPart(BodyPart part) throws MessagingException {
parse();
return super.removeBodyPart(part);
}

代码示例来源:origin: org.glassfish.metro/webservices-extra

/**
 * Remove the specified part from the multipart message.
 * Shifts all the parts after the removed part down one.
 *
 * @param   part    The part to remove
 * @return        true if part removed, false otherwise
 * @exception    MessagingException if no such Part exists
 * @exception    IllegalWriteException if the underlying
 *            implementation does not support modification
 *            of existing values
 */
@Override
public boolean removeBodyPart(BodyPart part) throws MessagingException {
parse();
return super.removeBodyPart(part);
}

代码示例来源:origin: com.sun.mail/android-mail

/**
 * Remove the specified part from the multipart message.
 * Shifts all the parts after the removed part down one.
 *
 * @param   part    The part to remove
 * @return        true if part removed, false otherwise
 * @exception    MessagingException if no such Part exists
 * @exception    IllegalWriteException if the underlying
 *            implementation does not support modification
 *            of existing values
 */
@Override
public boolean removeBodyPart(BodyPart part) throws MessagingException {
parse();
return super.removeBodyPart(part);
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.javax.mail

/**
 * Remove the part at specified location (starting from 0).
 * Shifts all the parts after the removed part down one.
 *
 * @param   index    Index of the part to remove
 * @exception    MessagingException
 * @exception       IndexOutOfBoundsException if the given index
 *            is out of range.
 * @exception    IllegalWriteException if the underlying
 *            implementation does not support modification
 *            of existing values
 */
public void removeBodyPart(int index) throws MessagingException {
parse();
super.removeBodyPart(index);
}

代码示例来源:origin: com.sun.mail/jakarta.mail

/**
 * Remove the specified part from the multipart message.
 * Shifts all the parts after the removed part down one.
 *
 * @param   part    The part to remove
 * @return        true if part removed, false otherwise
 * @exception    MessagingException if no such Part exists
 * @exception    IllegalWriteException if the underlying
 *            implementation does not support modification
 *            of existing values
 */
@Override
public boolean removeBodyPart(BodyPart part) throws MessagingException {
parse();
return super.removeBodyPart(part);
}

代码示例来源:origin: javax.mail/javax.mail-api

/**
 * Remove the part at specified location (starting from 0).
 * Shifts all the parts after the removed part down one.
 *
 * @param   index    Index of the part to remove
 * @exception       IndexOutOfBoundsException if the given index
 *            is out of range.
 * @exception    IllegalWriteException if the underlying
 *            implementation does not support modification
 *            of existing values
 * @exception    MessagingException for other failures
 */
@Override
public void removeBodyPart(int index) throws MessagingException {
parse();
super.removeBodyPart(index);
}

代码示例来源:origin: jboss/jboss-javaee-specs

/**
 * Remove the specified part from the multipart message.
 * Shifts all the parts after the removed part down one.
 *
 * @param   part    The part to remove
 * @return        true if part removed, false otherwise
 * @exception    MessagingException if no such Part exists
 * @exception    IllegalWriteException if the underlying
 *            implementation does not support modification
 *            of existing values
 */
@Override
public boolean removeBodyPart(BodyPart part) throws MessagingException {
parse();
return super.removeBodyPart(part);
}

代码示例来源:origin: com.sun.mail/jakarta.mail

/**
 * Remove the part at specified location (starting from 0).
 * Shifts all the parts after the removed part down one.
 *
 * @param   index    Index of the part to remove
 * @exception       IndexOutOfBoundsException if the given index
 *            is out of range.
 * @exception    IllegalWriteException if the underlying
 *            implementation does not support modification
 *            of existing values
 * @exception    MessagingException for other failures
 */
@Override
public void removeBodyPart(int index) throws MessagingException {
parse();
super.removeBodyPart(index);
}

代码示例来源:origin: org.glassfish.metro/webservices-extra

/**
 * Remove the part at specified location (starting from 0).
 * Shifts all the parts after the removed part down one.
 *
 * @param   index    Index of the part to remove
 * @exception       IndexOutOfBoundsException if the given index
 *            is out of range.
 * @exception    IllegalWriteException if the underlying
 *            implementation does not support modification
 *            of existing values
 * @exception    MessagingException for other failures
 */
@Override
public void removeBodyPart(int index) throws MessagingException {
parse();
super.removeBodyPart(index);
}

代码示例来源:origin: com.sun.mail/android-mail

/**
 * Remove the part at specified location (starting from 0).
 * Shifts all the parts after the removed part down one.
 *
 * @param   index    Index of the part to remove
 * @exception       IndexOutOfBoundsException if the given index
 *            is out of range.
 * @exception    IllegalWriteException if the underlying
 *            implementation does not support modification
 *            of existing values
 * @exception    MessagingException for other failures
 */
@Override
public void removeBodyPart(int index) throws MessagingException {
parse();
super.removeBodyPart(index);
}

代码示例来源:origin: jboss/jboss-javaee-specs

/**
 * Remove the part at specified location (starting from 0).
 * Shifts all the parts after the removed part down one.
 *
 * @param   index    Index of the part to remove
 * @exception       IndexOutOfBoundsException if the given index
 *            is out of range.
 * @exception    IllegalWriteException if the underlying
 *            implementation does not support modification
 *            of existing values
 * @exception    MessagingException for other failures
 */
@Override
public void removeBodyPart(int index) throws MessagingException {
parse();
super.removeBodyPart(index);
}

相关文章