Package org.klomp.snark
Class MagnetURI
java.lang.Object
org.klomp.snark.MagnetURI
public class MagnetURI extends Object
- Since:
- 0.9.4 moved from I2PSnarkServlet
-
Field Summary
Fields Modifier and Type Field Description static String
MAGGOT
http://sponge.i2p/files/maggotspec.txtstatic String
MAGNET
BEP 9static String
MAGNET_FULL
static String
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 -
Constructor Summary
Constructors Constructor Description MagnetURI(I2PSnarkUtil util, String url)
-
Method Summary
Modifier and Type Method Description byte[]
getInfoHash()
String
getName()
String
getTrackerURL()
-
Field Details
-
MAGNET
BEP 9- See Also:
- Constant Field Values
-
MAGNET_FULL
- See Also:
- Constant Field Values
-
MAGGOT
http://sponge.i2p/files/maggotspec.txt- See Also:
- Constant Field Values
-
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:
- Constant Field Values
-
-
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
-