Get the specified Part. Parts are numbered starting at 0. @param index the index of the desired Part @return the Part @exception IndexOutOfBoundsException if the given index is out of range. @exception MessagingException for other failures
(int index)
| 127 | * @exception MessagingException for other failures |
| 128 | */ |
| 129 | public synchronized BodyPart getBodyPart(int index) |
| 130 | throws MessagingException { |
| 131 | if (parts == null) |
| 132 | throw new IndexOutOfBoundsException("No such BodyPart"); |
| 133 | |
| 134 | return parts.elementAt(index); |
| 135 | } |
| 136 | |
| 137 | /** |
| 138 | * Remove the specified part from the multipart message. |
no outgoing calls
no test coverage detected