Package org.klomp.snark
Class MagnetURI
java.lang.Object
org.klomp.snark.MagnetURI
- Since:
- 0.9.4 moved from I2PSnarkServlet
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
MAGNET
BEP 9- See Also:
-
MAGNET_FULL
- See Also:
-
MAGGOT
http://sponge.i2p/files/maggotspec.txt- See Also:
-
MAGNET_FULL_V2
https://blog.libtorrent.org/2020/09/bittorrent-v2/ TODO, dup param parsing, as a dual v1/v2 link will contain two xt params- Since:
- 0.9.48
- See Also:
-
-
Constructor Details
-
MagnetURI
- Parameters:
url
- non-null- Throws:
IllegalArgumentException
-
-
Method Details
-
getInfoHash
public byte[] getInfoHash()- Returns:
- 20 bytes or null
-
getName
- Returns:
- pretty name or null, NOT HTML escaped
-
getTrackerURL
- Returns:
- tracker url or null
-