org.klomp.snark
Class MagnetURI
java.lang.Object
org.klomp.snark.MagnetURI
public class MagnetURI
- extends Object
- Since:
- 0.9.4 moved from I2PSnarkServlet
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
MagnetURI
public MagnetURI(I2PSnarkUtil util,
String url)
throws IllegalArgumentException
- Parameters:
url
- non-null
- Throws:
IllegalArgumentException
getInfoHash
public byte[] getInfoHash()
- Returns:
- 20 bytes or null
getName
public String getName()
- Returns:
- pretty name or null, NOT HTML escaped
getTrackerURL
public String getTrackerURL()
- Returns:
- tracker url or null