public final class JsonUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.lang.ThreadLocal<char[]> |
_qbufLocal
Temporary buffer used for composing quote/escape sequences
|
private static int[] |
ESC_CODES
Read-only encoding table for first 128 Unicode code points (single-byte UTF-8 characters).
|
private static char[] |
HC |
Constructor and Description |
---|
JsonUtils() |
Modifier and Type | Method and Description |
---|---|
private static int |
_appendNamed(int esc,
char[] qbuf) |
private static int |
_appendNumeric(int value,
char[] qbuf) |
private static char[] |
getQBuf() |
static void |
quoteAsString(java.lang.CharSequence input,
java.lang.StringBuilder output)
Quote text contents using JSON standard quoting, and append results to a supplied
StringBuilder . |
private static final char[] HC
private static final int[] ESC_CODES
private static final java.lang.ThreadLocal<char[]> _qbufLocal
private static char[] getQBuf()
public static void quoteAsString(java.lang.CharSequence input, java.lang.StringBuilder output)
StringBuilder
.private static int _appendNumeric(int value, char[] qbuf)
private static int _appendNamed(int esc, char[] qbuf)