- java.lang.Object
-
- org.redkale.convert.AnyDecoder<R,T>
-
- 类型参数:
R
- Reader
- 所有已实现的接口:
Decodeable<R,T>
public class AnyDecoder<R extends Reader,T> extends Object implements Decodeable<R,T>
对不明类型的对象进行反序列化。
注意: 目前只支持文本格式
详情见: https://redkale.org- 作者:
- zhangjx
-
-
字段概要
字段 修饰符和类型 字段 说明 protected CollectionDecoder
collectionDecoder
protected MapDecoder
mapDecoder
protected Decodeable<Reader,? extends CharSequence>
stringDecoder
-
构造器概要
构造器 限定符 构造器 说明 AnyDecoder(ConvertFactory factory)
构造函数protected
AnyDecoder(Creator<? extends Map> mapCreator, Type mapObjectType, Creator<? extends Collection> listCreator, Type listObjectType, Decodeable<Reader,String> keyDecoder)
-
-
-
字段详细资料
-
stringDecoder
protected final Decodeable<Reader,? extends CharSequence> stringDecoder
-
collectionDecoder
protected final CollectionDecoder collectionDecoder
-
mapDecoder
protected final MapDecoder mapDecoder
-
-
构造器详细资料
-
AnyDecoder
public AnyDecoder(ConvertFactory factory)
构造函数- 参数:
factory
- ConvertFactory
-
AnyDecoder
protected AnyDecoder(Creator<? extends Map> mapCreator, Type mapObjectType, Creator<? extends Collection> listCreator, Type listObjectType, Decodeable<Reader,String> keyDecoder)
-
-
方法详细资料
-
convertFrom
public T convertFrom(Reader in)
从接口复制的说明:Decodeable
反序列化操作- 指定者:
convertFrom
在接口中Decodeable<R extends Reader,T>
- 参数:
in
- R- 返回:
- T
-
getType
public Type getType()
从接口复制的说明:Decodeable
泛型映射接口- 指定者:
getType
在接口中Decodeable<R extends Reader,T>
- 返回:
- 反解析的数据类型
-
-