Class GsonUtil

java.lang.Object
info.u_team.u_team_core.util.GsonUtil

public class GsonUtil extends Object
Utility methods for gson
  • Constructor Details

    • GsonUtil

      public GsonUtil()
  • Method Details

    • createTabWriter

      public static com.google.gson.stream.JsonWriter createTabWriter(com.google.gson.Gson gson, Writer writer) throws IOException
      Creates a JsonWriter with the indent set to one tab
      Parameters:
      gson - Gson instance
      writer - Write
      Returns:
      Configured writer with one tab
      Throws:
      IOException