| Constructor and Description |
|---|
GsonWrapper(com.google.gson.Gson gson) |
| Modifier and Type | Method and Description |
|---|---|
com.google.gson.Gson |
delegate() |
<T> T |
fromJson(InputStream json,
Class<T> classOfT)
Deserialize the object from json.
|
<T> T |
fromJson(InputStream json,
Type type)
Deserialize the generic object from json.
|
<T> T |
fromJson(String json,
Class<T> classOfT)
Deserialize the object from json.
|
<T> T |
fromJson(String json,
Type type)
Deserialize the generic object from json.
|
String |
toJson(Object src)
Serialize the object into json.
|
String |
toJson(Object src,
Type type)
Serialize the generic object into json.
|
public <T> T fromJson(String json, Type type)
Json#fromJson(Object, Class)public <T> T fromJson(String json, Class<T> classOfT)
Json#fromJson(Object, Type)public <T> T fromJson(InputStream json, Type type)
Json#fromJson(Object, Class)public <T> T fromJson(InputStream json, Class<T> classOfT)
Json#fromJson(Object, Type)public String toJson(Object src)
JsonJson.toJson(Object, Type)public String toJson(Object src, Type type)
JsonJson.toJson(Object, Type)public com.google.gson.Gson delegate()
delegate in class com.google.common.collect.ForwardingObjectCopyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.