Package overit.geocall.util.gson
Class Gson
java.lang.Object
overit.geocall.util.gson.Gson
Defines the Gson serialization/deserialization incorporating the logic to read
and write
EuroObjects and DateObjects-
Field Summary
Fields -
Method Summary
-
Field Details
-
_gson
protected static com.google.gson.Gson _gson
-
-
Method Details
-
getGson
public static com.google.gson.Gson getGson()Returns theGson- Returns:
- The
Gson
-
read
Reads from a reader- Parameters:
r- The reader- Returns:
- The object read
- Throws:
IOException- if an I/O error occurs
-
read
Reads from aJsonReader- Parameters:
jr- TheJsonReader- Returns:
- The object read
- Throws:
IOException- if an I/O error occurs
-
write
Writes- Parameters:
w- TheWriterobj- The object to writeindent- The indentation- Throws:
IOException- if an I/O error occurs
-