public class AttachmentsMimePartProvider extends Object implements MimePartProvider, Detachable
| Constructor and Description |
|---|
AttachmentsMimePartProvider(Attachments attachments) |
| Modifier and Type | Method and Description |
|---|---|
void |
detach() |
javax.activation.DataHandler |
getDataHandler(String contentID)
Get the
DataHandler for the MIME part identified by a given content ID. |
boolean |
isLoaded(String contentID)
Check whether the MIME part identified by a given content ID has already been loaded.
|
public AttachmentsMimePartProvider(Attachments attachments)
public boolean isLoaded(String contentID)
MimePartProvidertrue means that a call to MimePartProvider.getDataHandler(String) (for
the same content ID) will not block or will retrieve the DataHandler without
overhead.isLoaded in interface MimePartProvidertrue if the MIME part has already been loaded; false
otherwisepublic javax.activation.DataHandler getDataHandler(String contentID) throws IOException
MimePartProviderDataHandler for the MIME part identified by a given content ID.getDataHandler in interface MimePartProvidercontentID - a content ID referenced in an xop:Include elementDataHandler for the MIME part identified by the content ID; may not be
nullIOException - if an error occurred while loading the partpublic void detach()
detach in interface DetachableCopyright © The Apache Software Foundation. All Rights Reserved.