Interface ReprintableDocumentAttachHandler

  • All Known Implementing Classes:
    CoreAttachImplementation, TestAttachImplementation

    public interface ReprintableDocumentAttachHandler
    Allows to handle re-printable documents as attachments through an attachment provider in particular. The ReprintableDocumentManager is the class in charge of instantiating and use the correct instance of this class depending on the attachment provider to be used on each case.
    • Method Detail

      • upload

        void upload​(ReprintableDocument document,
                    InputStream documentData)
             throws IOException
        Uploads the document the data of the ReprintableDocument as an attachment
        Parameters:
        document - The ReprintableDocument whose data is uploaded
        documentData - The InputStream with the document data
        Throws:
        IOException
      • download

        void download​(ReprintableDocument document,
                      OutputStream outputStream)
               throws IOException
        Retrieves ReprintableDocument data which was saved as an attachment
        Parameters:
        document - The ReprintableDocument whose data is retrieved
        outputStream - the OutputStream where the document data should be provided
        Throws:
        IOException