Class JSONRendererImpl

java.lang.Object
com.espertech.esper.common.internal.event.render.JSONRendererImpl
All Implemented Interfaces:
JSONEventRenderer

public class JSONRendererImpl extends Object implements JSONEventRenderer
Render for the JSON format.
  • Constructor Details

    • JSONRendererImpl

      public JSONRendererImpl(EventType eventType, JSONRenderingOptions options)
      Ctor.
      Parameters:
      eventType - type of event(s)
      options - rendering options
  • Method Details

    • render

      public String render(String title, EventBean theEvent)
      Description copied from interface: JSONEventRenderer
      Render a given event in the JSON format.
      Specified by:
      render in interface JSONEventRenderer
      Parameters:
      title - the JSON root title
      theEvent - the event to render
      Returns:
      JSON formatted text
    • render

      public String render(EventBean theEvent)
      Description copied from interface: JSONEventRenderer
      Render a given event in the JSON format.
      Specified by:
      render in interface JSONEventRenderer
      Parameters:
      theEvent - the event to render
      Returns:
      JSON formatted text