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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getInfoHash()
String
getName()
String
getTrackerURL()
-
-
-
Field Detail
-
MAGNET
public static final String MAGNET
BEP 9- See Also:
- Constant Field Values
-
MAGNET_FULL
public static final String MAGNET_FULL
- See Also:
- Constant Field Values
-
MAGGOT
public static final String MAGGOT
http://sponge.i2p/files/maggotspec.txt- See Also:
- Constant Field Values
-
MAGNET_FULL_V2
public static final 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- Since:
- 0.9.48
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MagnetURI
public MagnetURI(I2PSnarkUtil util, String url) throws IllegalArgumentException
- Parameters:
url
- non-null- Throws:
IllegalArgumentException
-
-