com.google.gson.Gson used by LFS servlets.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | LfsGson.
Wrapper class only used for serialization of error messages. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static < a T object. T> T | |
| public static void | toJson(Object
the object for which Json representation is to be created. If
this is a String, it is wrapped in an instance of
src, Appendable org..Writer to which the Json representation needs to be written writer)Serializes the specified object into its equivalent Json representation. |
| gson | back to summary |
|---|---|
| private static final Gson gson | |
| LfsGson | back to summary |
|---|---|
| public LfsGson() | |
| fromJson | back to summary |
|---|---|
| public static <T> T fromJson(Reader json, Class<T> classOfT) throws JsonSyntaxException, JsonIOException Deserializes the Json read from the specified reader into an object of the specified type.
| |
| toJson | back to summary |
|---|---|
| public static void toJson(Object src, Appendable writer) throws JsonIOException Serializes the specified object into its equivalent Json representation.
| |
| message | back to summary |
|---|---|
| pack-priv String message | |
| Error | back to summary |
|---|---|
| pack-priv Error(String m) | |