Package dev.galasa.framework.spi.utils
Class GalasaGson
java.lang.Object
dev.galasa.framework.spi.utils.GalasaGson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> T
<T> T
com.google.gson.JsonObject
fromJson
(BufferedReader bufferedReader, Class<com.google.gson.JsonObject> classOfT) <T> T
fromJson
(InputStreamReader inputStreamReader, Class<T> classOfT) <T> T
com.google.gson.Gson
getGson()
com.google.gson.stream.JsonReader
newJsonReader
(StringReader stringReader) void
setGsonBuilder
(GalasaGsonBuilder builder) com.google.gson.JsonElement
toJsonTree
(Object obj)
-
Constructor Details
-
GalasaGson
public GalasaGson()
-
-
Method Details
-
getGson
public com.google.gson.Gson getGson() -
getGsonBuilder
-
setGsonBuilder
-
toJson
-
fromJson
-
fromJson
- Throws:
IOException
-
fromJson
-
fromJson
-
fromJson
public com.google.gson.JsonObject fromJson(BufferedReader bufferedReader, Class<com.google.gson.JsonObject> classOfT) throws IOException - Throws:
IOException
-
toJsonTree
-
newJsonReader
-