Interface ExportableDocument

    • Method Detail

      • canExport

        boolean canExport​(ExportableDocument.Format format)
        Check if a format is supported by document.
        Parameters:
        format - export format
        Returns:
        true if format is supported.
      • export

        boolean export​(ExportableDocument.Format format,
                       java.io.OutputStream to)
                throws java.io.IOException
        Export a document.
        Parameters:
        format - format to export
        to - output document to this stream.
        Returns:
        true when file exported successfully, false otherwise.
        Throws:
        java.io.IOException - if the OutputStream can't be written to for any reason