statsserializer.java
来自「这是一个基于java编写的torrent的P2P源码」· Java 代码 · 共 29 行
JAVA
29 行
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 + =
减小字号Ctrl + -
显示快捷键?