Interface AttachmentResolver

    • Method Detail

      • getInputStream

        InputStream getInputStream​(Attachment attachment)
                            throws IOException
        Returns a stream to read the content of the specified attachment.
        Parameters:
        attachment - the logical attachment for which content is to be accessed.
        Returns:
        a stream to access the content of the attachment
        Throws:
        IOException - an exception if the physical content of the attachment cannot be found or if it failed to be accessed.
      • dispose

        void dispose()
        Disposes the instance, which shall free any resource used. The instance is no longer to be used once this method has been called.