Interface ExportAdapter

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

      • setType

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

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