java.lang.Object
cn.wjybxx.dsoncodec.codecs.MoreArrayCodecs.LongArrayCodec
- 所有已实现的接口:
DsonCodec<long[]>
- 封闭类:
MoreArrayCodecs
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Class<long[]> 获取负责编解码的类对象long[]readObject(DsonObjectReader reader, TypeInfo<?> typeInfo, Supplier<? extends long[]> factory) 从输入流中解析指定对象。voidwriteObject(DsonObjectWriter writer, long[] instance, TypeInfo<?> typeInfo, ObjectStyle style) 将对象写入输出流。从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 cn.wjybxx.dsoncodec.DsonCodec
autoStartEnd, isWriteAsArray
-
构造器详细资料
-
LongArrayCodec
public LongArrayCodec()
-
-
方法详细资料
-
getEncoderClass
从接口复制的说明:DsonCodec获取负责编解码的类对象- 指定者:
getEncoderClass在接口中DsonCodec<long[]>
-
writeObject
public void writeObject(DsonObjectWriter writer, long[] instance, TypeInfo<?> typeInfo, ObjectStyle style) 从接口复制的说明:DsonCodec将对象写入输出流。 将对象及其所有超类定义的所有要序列化的字段写入输出流。注意:name在外部已写入,因此基础类型写入value时name传null或空字符串。
- 指定者:
writeObject在接口中DsonCodec<long[]>- 参数:
typeInfo- 对象的类型信息(声明类型)style- 外部期望的输出格式
-
readObject
public long[] readObject(DsonObjectReader reader, TypeInfo<?> typeInfo, Supplier<? extends long[]> factory) 从接口复制的说明:DsonCodec从输入流中解析指定对象。 它应该创建对象,并反序列化该类及其所有超类定义的所有要序列化的字段。注意:name在外部已读取,因此读取value时使用
DsonObjectReader.getCurrentName()。- 指定者:
readObject在接口中DsonCodec<long[]>- 参数:
typeInfo- 对象的类型信息(声明类型)factory- 实例工厂
-