|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.grizzly.cometd.util.JSONParser
public class JSONParser
Nested Class Summary | |
---|---|
static interface |
JSONParser.Generator
|
static class |
JSONParser.Literal
A Literal JSON generator A utility instance of JSON.Generator that holds a pre-generated string on JSON text. |
Method Summary | |
---|---|
static void |
append(StringBuilder buffer,
Object object)
Append object as JSON to string buffer. |
static byte |
convertHexDigit(byte b)
|
static Object |
parse(String s)
|
static String |
quote(String s)
Quote a string. |
static void |
quote(StringBuilder buf,
String s)
Quote a string into a StringBuilder. |
static String |
toString(Map object)
|
static String |
toString(Object object)
|
static String |
toString(Object[] array)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String toString(Object object)
public static String toString(Map object)
public static String toString(Object[] array)
public static Object parse(String s)
s
- String containing JSON object or array.
public static void append(StringBuilder buffer, Object object)
buffer
- object
- public static String quote(String s)
s
- The string to quote.
public static void quote(StringBuilder buf, String s)
buf
- The StringBuilders
- The String to quote.public static byte convertHexDigit(byte b)
b
- An ASCII encoded character 0-9 a-f A-F
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |