|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MimePartProvider
Interface used by XOPDecodingStreamReader
to load MIME parts referenced by
xop:Include elements.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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
otherwise
IllegalArgumentException
- 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
.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 element
DataHandler
for the MIME part identified by the content ID; may not be
null
IllegalArgumentException
- if the MIME part was not found
IOException
- if an error occurred while loading the part
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |