com.browseengine.bobo.serialize
Class JSONSerializer

java.lang.Object
  extended by com.browseengine.bobo.serialize.JSONSerializer

public class JSONSerializer
extends Object


Constructor Summary
JSONSerializer()
           
 
Method Summary
static JSONSerializable deSerialize(Class clz, org.json.JSONObject jsonObj)
           
static void main(String[] args)
           
static org.json.JSONObject serializeJSONObject(JSONSerializable obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSONSerializer

public JSONSerializer()
Method Detail

deSerialize

public static JSONSerializable deSerialize(Class clz,
                                           org.json.JSONObject jsonObj)
                                    throws JSONSerializable.JSONSerializationException,
                                           org.json.JSONException
Throws:
JSONSerializable.JSONSerializationException
org.json.JSONException

serializeJSONObject

public static org.json.JSONObject serializeJSONObject(JSONSerializable obj)
                                               throws JSONSerializable.JSONSerializationException,
                                                      org.json.JSONException
Throws:
JSONSerializable.JSONSerializationException
org.json.JSONException

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


Copyright © 2005-2012. All Rights Reserved.