[英]Torrent Parser in java
java中是否有可用的torrent解析器从.torrent文件中提取元数据...
An article on wiki.theory covering the bitorrent spec led to BDecoder , a decoder for the fileformat used by torrent to encode metadata. 关于bitorrent规范的wiki.theory上的一篇文章引发了BDecoder ,这是torrent用来编码元数据的文件格式的解码器。 Have fun!
玩得开心! (The page contains a link to a corresponding encoder too)
(该页面也包含指向相应编码器的链接)
The easiest approach should be using the Bittorrent API . 最简单的方法应该是使用Bittorrent API 。 The provided lib contains a client, which should be capable of decoding metadata and include the java classes for that purpose.
提供的lib包含一个客户端,该客户端应该能够解码元数据并包含用于此目的的java类。
Related questions: 相关问题:
Have a look at jtorrentparser 看看jtorrentparser
It parses an Array of shorts with the static parse() method: 它使用static parse()方法解析一个short数组:
TorrentParser.parse(short[]);
You can use this spec to write up a parser yourself. 您可以使用此规范自行编写解析器。 It shouldn't be too difficult.
这应该不会太难。
Otherwise you could check out the source for any Java-based client. 否则,您可以查看任何基于Java的客户端的源代码。 Azureus/Vuze has their source available (don't see any information regarding license at first look).
Azureus / Vuze的源代码可用(初看时没有看到有关许可证的任何信息)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.