public class PointAsCoordinatesTypeAdapter
extends com.google.gson.TypeAdapter<T>
| Constructor and Description |
|---|
PointAsCoordinatesTypeAdapter() |
| Modifier and Type | Method and Description |
|---|---|
Point |
read(com.google.gson.stream.JsonReader in) |
protected Point |
readPoint(com.google.gson.stream.JsonReader in) |
protected java.util.List<java.lang.Double> |
readPointList(com.google.gson.stream.JsonReader in) |
void |
write(com.google.gson.stream.JsonWriter out,
Point value) |
protected void |
writePoint(com.google.gson.stream.JsonWriter out,
Point point) |
protected void |
writePointList(com.google.gson.stream.JsonWriter out,
java.util.List<java.lang.Double> value) |
public void write(com.google.gson.stream.JsonWriter out,
Point value)
throws java.io.IOException
write in class com.google.gson.TypeAdapter<Point>java.io.IOExceptionpublic Point read(com.google.gson.stream.JsonReader in) throws java.io.IOException
read in class com.google.gson.TypeAdapter<Point>java.io.IOExceptionprotected void writePoint(com.google.gson.stream.JsonWriter out,
Point point)
throws java.io.IOException
java.io.IOExceptionprotected Point readPoint(com.google.gson.stream.JsonReader in) throws java.io.IOException
java.io.IOExceptionprotected void writePointList(com.google.gson.stream.JsonWriter out,
java.util.List<java.lang.Double> value)
throws java.io.IOException
java.io.IOExceptionprotected java.util.List<java.lang.Double> readPointList(com.google.gson.stream.JsonReader in)
throws java.io.IOException
java.io.IOException