public abstract class GsonRenderFactoryBase extends java.lang.Object implements JsonRenderFactory
限定符和类型 | 字段和说明 |
---|---|
protected GsonStringSerializer |
serializer |
构造器和说明 |
---|
GsonRenderFactoryBase() |
限定符和类型 | 方法和说明 |
---|---|
<T> void |
addConvertor(java.lang.Class<T> clz,
Converter<T,java.lang.Object> converter)
添加转换器(编码器的简化版)
|
<T> void |
addEncoder(java.lang.Class<T> clz,
com.google.gson.JsonSerializer<T> encoder)
添加编码器
|
com.google.gson.GsonBuilder |
config()
序列化配置
|
GsonStringSerializer |
getSerializer()
获取序列化器
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create, mappings
protected final GsonStringSerializer serializer
public GsonStringSerializer getSerializer()
public com.google.gson.GsonBuilder config()
public <T> void addEncoder(java.lang.Class<T> clz, com.google.gson.JsonSerializer<T> encoder)
public <T> void addConvertor(java.lang.Class<T> clz, Converter<T,java.lang.Object> converter)
addConvertor
在接口中 JsonRenderFactory
clz
- 类型converter
- 转换器