Class OutputValueRendererXMLString

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

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

    • OutputValueRendererXMLString

      public OutputValueRendererXMLString()
  • 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
    • xmlEncode

      public static void xmlEncode(String s, StringBuilder sb, boolean isEncodeSpecialChar)
      XML-Encode the passed string.
      Parameters:
      s - string to encode
      sb - string buffer to populate
      isEncodeSpecialChar - true for encoding of special characters below ' ', false for leaving special chars