Package me.syncwrld.booter.common.tool
Class JsonParser
- java.lang.Object
-
- me.syncwrld.booter.common.tool.JsonParser
-
public class JsonParser extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description JsonParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.gson.JsonArray
getArray(java.io.File file)
com.google.gson.JsonArray
getArray(java.io.InputStream inputStream)
com.google.gson.JsonObject
getObject(java.io.File file)
com.google.gson.JsonObject
getObject(java.io.InputStream inputStream)
void
saveArray(java.io.File file, com.google.gson.JsonArray array)
void
saveObject(java.io.File file, com.google.gson.JsonObject object)
-
-
-
Method Detail
-
getObject
public com.google.gson.JsonObject getObject(java.io.File file)
-
getObject
public com.google.gson.JsonObject getObject(java.io.InputStream inputStream)
-
getArray
public com.google.gson.JsonArray getArray(java.io.File file)
-
getArray
public com.google.gson.JsonArray getArray(java.io.InputStream inputStream)
-
saveObject
public void saveObject(java.io.File file, com.google.gson.JsonObject object)
-
saveArray
public void saveArray(java.io.File file, com.google.gson.JsonArray array)
-
-