Return the data associated with the FetchItem. If the data hasn't been fetched, call the fetchItem method to fetch it. Returns null if there is no data for the FetchItem. @param fitem the FetchItem @return the data associated with the FetchItem @exception MessagingException for failures @since Ja
(FetchItem fitem)
| 1496 | * @since JavaMail 1.4.6 |
| 1497 | */ |
| 1498 | public synchronized Object getItem(FetchItem fitem) |
| 1499 | throws MessagingException { |
| 1500 | Object item = items == null ? null : items.get(fitem.getName()); |
| 1501 | if (item == null) |
| 1502 | item = fetchItem(fitem); |
| 1503 | return item; |
| 1504 | } |
| 1505 | |
| 1506 | /* |
| 1507 | * Load the Envelope for this message. |