Class OutputValueRendererJSONString
java.lang.Object
com.espertech.esper.common.internal.event.render.OutputValueRendererJSONString
- All Implemented Interfaces:
OutputValueRenderer
Renderer for a String-value into JSON strings.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
enquote
(String s, StringBuilder sb) JSON-Enquote the passed string.void
render
(Object object, StringBuilder buf) Renders the value to the buffer.
-
Constructor Details
-
OutputValueRendererJSONString
public OutputValueRendererJSONString()
-
-
Method Details
-
render
Description copied from interface:OutputValueRenderer
Renders the value to the buffer.- Specified by:
render
in interfaceOutputValueRenderer
- Parameters:
object
- to renderbuf
- buffer to populate
-
enquote
JSON-Enquote the passed string.- Parameters:
s
- string to enqoutesb
- buffer to populate
-