Class JsonDocumentTypeAdapter
- java.lang.Object
-
- com.google.gson.TypeAdapter<JsonDocument>
-
- de.dytanic.cloudnet.common.document.gson.JsonDocumentTypeAdapter
-
public class JsonDocumentTypeAdapter extends com.google.gson.TypeAdapter<JsonDocument>
Created by Tareko on 23.12.2017.
-
-
Constructor Summary
Constructors Constructor Description JsonDocumentTypeAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonDocumentread(com.google.gson.stream.JsonReader jsonReader)voidwrite(com.google.gson.stream.JsonWriter jsonWriter, JsonDocument document)
-
-
-
Method Detail
-
write
public void write(com.google.gson.stream.JsonWriter jsonWriter, JsonDocument document) throws java.io.IOException- Specified by:
writein classcom.google.gson.TypeAdapter<JsonDocument>- Throws:
java.io.IOException
-
read
public JsonDocument read(com.google.gson.stream.JsonReader jsonReader) throws java.io.IOException
- Specified by:
readin classcom.google.gson.TypeAdapter<JsonDocument>- Throws:
java.io.IOException
-
-