Package info.u_team.u_team_core.util
Class GsonUtil
java.lang.Object
info.u_team.u_team_core.util.GsonUtil
Utility methods for gson
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.gson.stream.JsonWriter
createTabWriter
(com.google.gson.Gson gson, Writer writer) Creates aJsonWriter
with the indent set to one tab
-
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 aJsonWriter
with the indent set to one tab- Parameters:
gson
- Gson instancewriter
- Write- Returns:
- Configured writer with one tab
- Throws:
IOException
-