- java.lang.Object
-
- org.redkale.convert.ObjectEncoder<ProtobufWriter,T>
-
- org.redkale.convert.pb.ProtobufObjectEncoder<T>
-
- org.redkale.convert.pb.ProtobufDynEncoder<T>
-
- 类型参数:
T
- 序列化的数据类型
- 所有已实现的接口:
Encodeable<ProtobufWriter,T>
,ProtobufEncodeable<ProtobufWriter,T>
public abstract class ProtobufDynEncoder<T> extends ProtobufObjectEncoder<T>
简单对象的PROTOBUF序列化操作类详情见: https://redkale.org
- 从以下版本开始:
- 2.8.0
- 作者:
- zhangjx
-
-
字段概要
字段 修饰符和类型 字段 说明 protected ObjectEncoder<ProtobufWriter,T>
objectEncoderSelf
protected Class
typeClass
-
从类继承的字段 org.redkale.convert.ObjectEncoder
factory, inited, members, type
-
-
构造器概要
构造器 限定符 构造器 说明 protected
ProtobufDynEncoder(ProtobufFactory factory, Type type, ProtobufObjectEncoder objectEncoderSelf)
-
方法概要
所有方法 静态方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 abstract void
convertTo(ProtobufWriter out, EnMember member, T value)
static ProtobufDynEncoder
createDyncEncoder(ProtobufFactory factory, Type type)
protected static ProtobufDynEncoder
generateDyncEncoder(ProtobufFactory factory, Class clazz)
Type
getType()
泛型映射接口-
从类继承的方法 org.redkale.convert.pb.ProtobufObjectEncoder
acceptWriter, computeSize, convertTo, initForEachEnMember, offerWriter
-
从类继承的方法 org.redkale.convert.ObjectEncoder
afterInitEnMember, checkInited, getMembers, getTypeClass, init, initFieldMember, setIndex, setPosition, setTag, setTagSize, toString
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
从接口继承的方法 org.redkale.convert.Encodeable
specifyable
-
-
-
-
字段详细资料
-
typeClass
protected final Class typeClass
-
objectEncoderSelf
protected final ObjectEncoder<ProtobufWriter,T> objectEncoderSelf
-
-
构造器详细资料
-
ProtobufDynEncoder
protected ProtobufDynEncoder(ProtobufFactory factory, Type type, ProtobufObjectEncoder objectEncoderSelf)
-
-
方法详细资料
-
convertTo
public abstract void convertTo(ProtobufWriter out, EnMember member, T value)
- 指定者:
convertTo
在接口中ProtobufEncodeable<ProtobufWriter,T>
- 覆盖:
convertTo
在类中ProtobufObjectEncoder<T>
-
generateDyncEncoder
protected static ProtobufDynEncoder generateDyncEncoder(ProtobufFactory factory, Class clazz)
-
createDyncEncoder
public static ProtobufDynEncoder createDyncEncoder(ProtobufFactory factory, Type type)
-
getType
public Type getType()
从接口复制的说明:Encodeable
泛型映射接口- 指定者:
getType
在接口中Encodeable<ProtobufWriter,T>
- 覆盖:
getType
在类中ObjectEncoder<ProtobufWriter,T>
- 返回:
- 返回序列化对象类的数据类型
-
-