Class OutputValueRendererJSONString

java.lang.Object
com.espertech.esper.common.internal.event.render.OutputValueRendererJSONString
All Implemented Interfaces:
OutputValueRenderer

public class OutputValueRendererJSONString extends Object implements OutputValueRenderer
Renderer for a String-value into JSON strings.
  • Constructor Details

    • OutputValueRendererJSONString

      public OutputValueRendererJSONString()
  • Method Details

    • render

      public void render(Object object, StringBuilder buf)
      Description copied from interface: OutputValueRenderer
      Renders the value to the buffer.
      Specified by:
      render in interface OutputValueRenderer
      Parameters:
      object - to render
      buf - buffer to populate
    • enquote

      public static void enquote(String s, StringBuilder sb)
      JSON-Enquote the passed string.
      Parameters:
      s - string to enqoute
      sb - buffer to populate