org.gudy.azureus2.core3.tracker.protocol
Class PRHelpers

java.lang.Object
  extended by org.gudy.azureus2.core3.tracker.protocol.PRHelpers

public class PRHelpers
extends Object


Constructor Summary
PRHelpers()
           
 
Method Summary
static void addressTo4ByteArray(String address, byte[] buffer, int offset)
           
static int addressToInt(InetAddress i_address)
           
static int addressToInt(String address)
           
static long addressToLong(InetAddress i_address)
           
static String DNSToIPAddress(String dns_name)
           
static String intToAddress(int value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PRHelpers

public PRHelpers()
Method Detail

addressToInt

public static int addressToInt(String address)
                        throws UnknownHostException
Throws:
UnknownHostException

addressToInt

public static int addressToInt(InetAddress i_address)

addressToLong

public static long addressToLong(InetAddress i_address)

intToAddress

public static String intToAddress(int value)

addressTo4ByteArray

public static void addressTo4ByteArray(String address,
                                       byte[] buffer,
                                       int offset)
                                throws UnknownHostException
Throws:
UnknownHostException

DNSToIPAddress

public static String DNSToIPAddress(String dns_name)
                             throws UnknownHostException
Throws:
UnknownHostException