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.
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.