public class JSONConverterSelector extends Object implements Serializable
Constructor and Description |
---|
JSONConverterSelector() |
Modifier and Type | Method and Description |
---|---|
Class |
checkFastJSONClass()
检测FastJSON相关类型
|
Class |
checkGsonClass()
检测Gson相关类型
|
Class |
checkJacsonClass()
检测Jaskon相关类型
|
static JSONConverterSelector |
getInstance() |
ForestJsonConverter |
select()
选择Forest的JSON转换器
|
public static JSONConverterSelector getInstance()
public Class checkFastJSONClass() throws Throwable
Throwable
- 找不到类型时抛出的异常public Class checkJacsonClass() throws Throwable
Throwable
- 找不到类型时抛出的异常public Class checkGsonClass() throws Throwable
Throwable
- 找不到类型时抛出的异常public ForestJsonConverter select()
从FastJson、Jackson以及Gson中动态选择一个可用的JSON转换器
ForestJsonConverter
接口实例Copyright © 2020. All rights reserved.