public interface MimePartProvider
XOPDecodingStreamReader
to load MIME parts referenced by
xop:Include elements.Modifier and Type | Method and Description |
---|---|
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.
|
boolean isLoaded(String contentID)
true
means that a call to getDataHandler(String)
(for
the same content ID) will not block or will retrieve the DataHandler
without
overhead.true
if the MIME part has already been loaded; false
otherwiseIllegalArgumentException
- Thrown if the MIME part specified by the content ID doesn't exist. Note that the
implementation may be unable to determine this without loading all the MIME
parts. In this case, it should return false
.javax.activation.DataHandler getDataHandler(String contentID) throws IOException
DataHandler
for the MIME part identified by a given content ID.contentID
- a content ID referenced in an xop:Include elementDataHandler
for the MIME part identified by the content ID; may not be
null
IllegalArgumentException
- if the MIME part was not foundIOException
- if an error occurred while loading the partCopyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.