public class JsonRPCMarshaller extends Object
| Constructor and Description |
|---|
JsonRPCMarshaller() |
| Modifier and Type | Method and Description |
|---|---|
static Hashtable<String,Object> |
deserializeJSONObject(JSONObject jsonObject) |
static byte[] |
marshall(RPCMessage msg,
byte version) |
static JSONObject |
serializeHashtable(Hashtable<String,Object> hash) |
static Hashtable<String,Object> |
unmarshall(byte[] message) |
public static byte[] marshall(RPCMessage msg, byte version)
msg - RPC message to be marshaledversion - protocol versionpublic static Hashtable<String,Object> deserializeJSONObject(JSONObject jsonObject) throws JSONException
JSONExceptionpublic static JSONObject serializeHashtable(Hashtable<String,Object> hash) throws JSONException
JSONException