de.javawi.jstun.util
Class Address

java.lang.Object
  extended by de.javawi.jstun.util.Address

public class Address
extends Object


Constructor Summary
Address(byte[] address)
           
Address(int firstOctet, int secondOctet, int thirdOctet, int fourthOctet)
           
Address(String address)
           
 
Method Summary
 boolean equals(Object obj)
           
 byte[] getBytes()
           
 InetAddress getInetAddress()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Address

public Address(int firstOctet,
               int secondOctet,
               int thirdOctet,
               int fourthOctet)
        throws UtilityException
Throws:
UtilityException

Address

public Address(String address)
        throws UtilityException
Throws:
UtilityException

Address

public Address(byte[] address)
        throws UtilityException
Throws:
UtilityException
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getBytes

public byte[] getBytes()
                throws UtilityException
Throws:
UtilityException

getInetAddress

public InetAddress getInetAddress()
                           throws UtilityException,
                                  UnknownHostException
Throws:
UtilityException
UnknownHostException

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object