Package com.yahoo.data.access.simple
Class JsonRender
- java.lang.Object
-
- com.yahoo.data.access.simple.JsonRender
-
public final class JsonRender extends java.lang.Object
Encodes json from an inspectable object.- Author:
- arnej27959
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JsonRender.StringEncoder
-
Constructor Summary
Constructors Constructor Description JsonRender()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringBuilder
render(Inspectable value, JsonRender.StringEncoder encoder)
Renders the given value to the target stringbuilder with a given encoder.static java.lang.StringBuilder
render(Inspectable value, java.lang.StringBuilder target, boolean compact)
-
-
-
Method Detail
-
render
public static java.lang.StringBuilder render(Inspectable value, java.lang.StringBuilder target, boolean compact)
-
render
public static java.lang.StringBuilder render(Inspectable value, JsonRender.StringEncoder encoder)
Renders the given value to the target stringbuilder with a given encoder. This is useful to use an encoder where rendering of some value types is customized.
-
-