public class JsonElementTypeAdapter
extends com.google.gson.TypeAdapter<java.lang.Object>
JsonElements.| Modifier and Type | Class and Description |
|---|---|
static class |
JsonElementTypeAdapter.Factory
This factory should not be registered with a GsonBuilder because it always matches.
|
| Constructor and Description |
|---|
JsonElementTypeAdapter(com.google.gson.Gson gson) |
| Modifier and Type | Method and Description |
|---|---|
com.google.gson.JsonElement |
read(com.google.gson.stream.JsonReader in) |
void |
write(com.google.gson.stream.JsonWriter out,
java.lang.Object value) |
public com.google.gson.JsonElement read(com.google.gson.stream.JsonReader in)
throws java.io.IOException
read in class com.google.gson.TypeAdapter<java.lang.Object>java.io.IOExceptionpublic void write(com.google.gson.stream.JsonWriter out,
java.lang.Object value)
throws java.io.IOException
write in class com.google.gson.TypeAdapter<java.lang.Object>java.io.IOException