Interface ExportAdapter


  • public interface ExportAdapter
    This adapter allows the exporter to act independent of APIs used to serve the exported data to the caller.
    Author:
    Alexander Schwartz
    • Method Detail

      • setType

        void setType​(String mediaType)
        Set the mime type of the output.
        Parameters:
        mediaType - Mime Type
      • writeToOutputStream

        void writeToOutputStream​(ExportAdapter.ConsumerOfOutputStream consumer)
        Write to the output stream. Once writing is complete, close it.
        Parameters:
        consumer - A consumer to that accepts the output stream.