Class FeatureAdapter
- java.lang.Object
-
- com.google.gson.TypeAdapter<Feature>
-
- com.github.filosganga.geogson.gson.FeatureAdapter
-
-
Field Summary
Fields Modifier and Type Field Description static StringFEATURE_TYPEstatic StringGEOMETRY_NAMEstatic StringID_NAMEstatic StringPROPERTIES_NAMEstatic StringTYPE_NAME
-
Constructor Summary
Constructors Constructor Description FeatureAdapter(com.google.gson.Gson gson)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Featureread(com.google.gson.stream.JsonReader in)voidwrite(com.google.gson.stream.JsonWriter out, Feature value)
-
-
-
Field Detail
-
FEATURE_TYPE
public static final String FEATURE_TYPE
- See Also:
- Constant Field Values
-
PROPERTIES_NAME
public static final String PROPERTIES_NAME
- See Also:
- Constant Field Values
-
GEOMETRY_NAME
public static final String GEOMETRY_NAME
- See Also:
- Constant Field Values
-
ID_NAME
public static final String ID_NAME
- See Also:
- Constant Field Values
-
TYPE_NAME
public static final String TYPE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
write
public void write(com.google.gson.stream.JsonWriter out, Feature value) throws IOException- Specified by:
writein classcom.google.gson.TypeAdapter<Feature>- Throws:
IOException
-
read
public Feature read(com.google.gson.stream.JsonReader in) throws IOException
- Specified by:
readin classcom.google.gson.TypeAdapter<Feature>- Throws:
IOException
-
-