public interface AttachmentResolver
RichTextUtils.createAttachmentResolver()
methods to get an instance of the interface.
Client is required to call the dispose()
method once the AttachmentResolver
is not to be used anymore, as this may free
temporary resources created by the resolver.
Clients may implement this interface.
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Disposes the instance, which shall free any resource used.
|
InputStream |
getInputStream(Attachment attachment)
Returns a stream to read the content of the specified attachment.
|
InputStream getInputStream(Attachment attachment) throws IOException
attachment
- the logical attachment for which content is to be accessed.IOException
- an exception if the physical content of the attachment cannot be found
or if it failed to be accessed.void dispose()