using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections; namespace XunleiHelper { public class Torrent { #region 私有字段 private string _openError = ""; private bool _openFile = false; private
首先torrent里面肯定携带的有一些信息,所以就需要我们来解析这些信息. 我们这里做多文件制作torrent,所以首先要针对每一个文件建一个实体类 import java.util.List; public class Info { private String name; private byte[] pieces; private long piecesLength; private long length; private String md5sum; private List<File