@Override
public void write(java.io.DataOutput do) throws IOException {
do.writeUTF(this.string1);
do.writeUTF(this.string1);
do.writeLong(this.long1);
}
@Override
public void readFields(java.io.DataInput di) throws IOException {
this.string1= di.readUTF();
this.string2 = di.readUTF();
this.long1 = di.readLong();
}
如果更有效率,为什么?和java这样比有什么优缺点?
另外下面这个链接的结果是啥意思?
https://github.com/eishay/jvm-serializers/wiki
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...