Return the number of enclosed BodyPart objects. @return number of parts @exception MessagingException for failures @see #parts
()
| 111 | * @see #parts |
| 112 | */ |
| 113 | public synchronized int getCount() throws MessagingException { |
| 114 | if (parts == null) |
| 115 | return 0; |
| 116 | |
| 117 | return parts.size(); |
| 118 | } |
| 119 | |
| 120 | /** |
| 121 | * Get the specified Part. Parts are numbered starting at 0. |
no test coverage detected