Interface OutputConsumer


  • public interface OutputConsumer
    Output consumer responsible for transforming JsonNode to desired output format.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.Set<java.lang.String> getFileFormats()
      Gets all file formats that are supported with this consumer.
      void write​(com.fasterxml.jackson.databind.JsonNode node, java.io.OutputStream output)
      Writes result of transformation of JsonNode to OutputStream.
    • Method Detail

      • getFileFormats

        java.util.Set<java.lang.String> getFileFormats()
        Gets all file formats that are supported with this consumer.
        Returns:
        set of file formats
      • write

        void write​(com.fasterxml.jackson.databind.JsonNode node,
                   java.io.OutputStream output)
            throws java.io.IOException
        Writes result of transformation of JsonNode to OutputStream.
        Parameters:
        node - node to be transformed
        output - output where transformed node should be written to
        Throws:
        java.io.IOException - when transforming node to output