Class GalasaGson

java.lang.Object
dev.galasa.framework.spi.utils.GalasaGson

public class GalasaGson extends Object
  • Constructor Details

    • GalasaGson

      public GalasaGson()
  • Method Details

    • getGson

      public com.google.gson.Gson getGson()
    • getGsonBuilder

      public GalasaGsonBuilder getGsonBuilder()
    • setGsonBuilder

      public void setGsonBuilder(GalasaGsonBuilder builder)
    • toJson

      public String toJson(Object obj)
    • fromJson

      public <T> T fromJson(String json, Class<T> classOfT)
    • fromJson

      public <T> T fromJson(InputStreamReader inputStreamReader, Class<T> classOfT) throws IOException
      Throws:
      IOException
    • fromJson

      public <T> T fromJson(com.google.gson.JsonObject jsonObject, Class<T> classOfT)
    • fromJson

      public <T> T fromJson(com.google.gson.stream.JsonReader jsonReader, Class<T> classOfT)
    • fromJson

      public com.google.gson.JsonObject fromJson(BufferedReader bufferedReader, Class<com.google.gson.JsonObject> classOfT) throws IOException
      Throws:
      IOException
    • toJsonTree

      public com.google.gson.JsonElement toJsonTree(Object obj)
    • newJsonReader

      public com.google.gson.stream.JsonReader newJsonReader(StringReader stringReader)