简体   繁体   中英

Get filename from .torrent in Java

How can I get the "real" filename from a file in a .torrent, to print it in java? I can getFileName and getAbsolutePath, but I want the filename of the actual file?

您可能应该使用BitTorrent库,例如Snarktorrent4jbitextYaircc

Take a look at the Torrent File Format . It will give you information on how to get file names from the file and the peers.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM