类 JsonConstructor
- java.lang.Object
-
- cn.mcres.gyhhy.MXLib.configuration.JsonConstructor
-
public class JsonConstructor extends Object
- 版本:
- 1.10
-
-
构造器概要
构造器 构造器 说明 JsonConstructor(boolean pretty)JsonConstructor(com.google.gson.Gson g)已过时。
-
方法概要
修饰符和类型 方法 说明 protected Stringbuild(JsonConfiguration jc, Map<String,Object> map)protected StringbuildHeader(JsonConfiguration jc)com.google.gson.GsongetGson()protected voidload(Reader reader, JsonConfiguration jc)protected voidload(String contents, JsonConfiguration jc)
-
-
-
构造器详细资料
-
JsonConstructor
public JsonConstructor(boolean pretty)
-
JsonConstructor
@Deprecated public JsonConstructor(@NotNull com.google.gson.Gson g)
已过时。
-
-
方法详细资料
-
getGson
public com.google.gson.Gson getGson()
-
build
protected String build(JsonConfiguration jc, Map<String,Object> map)
-
load
protected void load(Reader reader, JsonConfiguration jc) throws com.google.gson.JsonIOException, com.google.gson.JsonSyntaxException
- 抛出:
com.google.gson.JsonIOExceptioncom.google.gson.JsonSyntaxException
-
load
protected void load(String contents, JsonConfiguration jc) throws com.google.gson.JsonSyntaxException
- 抛出:
com.google.gson.JsonSyntaxException
-
buildHeader
protected String buildHeader(JsonConfiguration jc)
-
-