📄 statsserializer.java
字号:
package com.aelitis.azureus.vivaldi.ver2.stats;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import edu.harvard.syrah.nc.VivaldiClient;
public interface StatsSerializer {
public static final byte VER_01 = 0x01;
/*
* Returns the version that the underlying implemnetation serializes and
* deserializes.
*/
public byte getSerializedVersion();
/*
* Writes the statistics to the given stream. Returns true if written
* successfully.
*/
public void toSerialized(DataOutputStream os, VivaldiClient vc) throws IOException;
/*
* Reads the statistics from the given stream.
*/
public VivaldiStatistics fromSerialized(DataInputStream is) throws IOException;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -