org.klomp.snark
Class MagnetURI

java.lang.Object
  extended by org.klomp.snark.MagnetURI

public class MagnetURI
extends Object

Since:
0.9.4 moved from I2PSnarkServlet

Field Summary
static String MAGGOT
          http://sponge.i2p/files/maggotspec.txt
static String MAGNET
          BEP 9
static String MAGNET_FULL
           
 
Constructor Summary
MagnetURI(I2PSnarkUtil util, String url)
           
 
Method Summary
 byte[] getInfoHash()
           
 String getName()
           
 String getTrackerURL()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
Constructor Detail

MagnetURI

public MagnetURI(I2PSnarkUtil util,
                 String url)
          throws IllegalArgumentException
Parameters:
url - non-null
Throws:
IllegalArgumentException
Method Detail

getInfoHash

public byte[] getInfoHash()
Returns:
20 bytes or null

getName

public String getName()
Returns:
pretty name or null

getTrackerURL

public String getTrackerURL()
Returns:
tracker url or null