private static class XOPDecodingStreamReader.DataHandlerProviderImpl extends java.lang.Object implements DataHandlerProvider
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
contentID |
private MimePartProvider |
mimePartProvider |
| Constructor and Description |
|---|
DataHandlerProviderImpl(MimePartProvider mimePartProvider,
java.lang.String contentID) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getContentID() |
javax.activation.DataHandler |
getDataHandler()
Get the
DataHandler object for the binary content. |
boolean |
isLoaded()
Check whether the
DataHandler has already been loaded. |
private final MimePartProvider mimePartProvider
private final java.lang.String contentID
public DataHandlerProviderImpl(MimePartProvider mimePartProvider, java.lang.String contentID)
public java.lang.String getContentID()
public boolean isLoaded()
DataHandlerProviderDataHandler has already been loaded. A return value of
true means that a call to DataHandlerProvider.getDataHandler() will not block or will
retrieve the DataHandler without overhead. Note the return value of this method for a
given instance of this class may change over time due to events other than a call to
DataHandlerProvider.getDataHandler() on the same instance. E.g. a call to DataHandlerProvider.getDataHandler() on
one instance may change the return value of the method on another instance (because the
DataHandler objects can only be loaded in a certain sequence).isLoaded in interface DataHandlerProvidertrue if the DataHandler has already been loaded;
false otherwisepublic javax.activation.DataHandler getDataHandler()
throws java.io.IOException
DataHandlerProviderDataHandler object for the binary content.getDataHandler in interface DataHandlerProviderjava.io.IOException - if an error occurs while loading the DataHandler