Interface Exportable

    • Method Detail

      • export

        void export​(java.lang.String mimeType,
                    java.lang.Object output)
             throws java.io.IOException,
                    java.lang.UnsupportedOperationException
        Exports the object to a format.
        Parameters:
        mimeType - Desired export format. Call isExportFormatSupported(String) to make sure that the object supports the format before trying to export, or be prepared to handle UnsupportedOperationException.
        output - Object that will receive the exported data. The type of this object depends on the export format. All formats should support java.io.OutputStream. Text based format (for example, XML formats) should also support java.io.Writer. Certain formats may also support other object types.
        Throws:
        java.io.IOException - if an exception occurs while exporting the data.
        java.lang.UnsupportedOperationException - if the format is not supported by this object, or if the output argument is not of a supported type.
        See Also:
        isExportFormatSupported(String)