DataNode
byte[] data,Long acl,StatPersisted stat等信息。
public synchronized void deserialize(InputArchive archive, String tag) throws IOException {
archive.startRecord("node");
data = archive.readBuffer("data");
acl = archive.readLong("acl");
stat = new StatPersisted();
stat.deserialize(archive, "statpersisted");
archive.endRecord("node");
}
public synchronized void serialize(OutputArchive archive, String tag) throws IOException {
archive.startRecord(this, "node");
archive.writeBuffer(data, "data");
archive.writeLong(acl, "acl");
stat.serialize(archive, "statpersisted");
archive.endRecord(this, "node");
}
java serialize deserialize
最新推荐文章于 2024-11-04 22:26:34 发布