MCPcopy Create free account
hub / github.com/M66B/FairEmail / removeBodyPart

Method removeBodyPart

app/src/main/java/javax/mail/Multipart.java:148–156  ·  view source on GitHub ↗

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 imple

(BodyPart part)

Source from the content-addressed store, hash-verified

146 * of existing values
147 */
148 public synchronized boolean removeBodyPart(BodyPart part)
149 throws MessagingException {
150 if (parts == null)
151 throw new MessagingException("No such body part");
152
153 boolean ret = parts.removeElement(part);
154 part.setParent(null);
155 return ret;
156 }
157
158 /**
159 * Remove the part at specified location (starting from 0).

Callers 1

deletePartMethod · 0.95

Calls 2

setParentMethod · 0.95
setParentMethod · 0.45

Tested by

no test coverage detected