java.net
Class InetAddress

java.lang.Object
  |
  +--java.net.InetAddress
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Inet4Address, Inet6Address

public synchronized class InetAddress
extends Object
implements Serializable

See Also:
Serialized Form

Method Summary
 boolean equals(Object)
           
 byte[] getAddress()
           
static InetAddress[] getAllByName(String)
           
static InetAddress getByAddress(byte[])
           
static InetAddress getByAddress(String, byte[])
           
static InetAddress getByName(String)
           
 String getCanonicalHostName()
           
 String getHostAddress()
           
 String getHostName()
           
static InetAddress getLocalHost()
           
 int hashCode()
           
 boolean isAnyLocalAddress()
           
 boolean isLinkLocalAddress()
           
 boolean isLoopbackAddress()
           
 boolean isMCGlobal()
           
 boolean isMCLinkLocal()
           
 boolean isMCNodeLocal()
           
 boolean isMCOrgLocal()
           
 boolean isMCSiteLocal()
           
 boolean isMulticastAddress()
           
 boolean isSiteLocalAddress()
           
 String toString()
          Returns the empty string.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait
 

Method Detail

isMulticastAddress

public boolean isMulticastAddress()

isAnyLocalAddress

public boolean isAnyLocalAddress()

isLoopbackAddress

public boolean isLoopbackAddress()

isLinkLocalAddress

public boolean isLinkLocalAddress()

isSiteLocalAddress

public boolean isSiteLocalAddress()

isMCGlobal

public boolean isMCGlobal()

isMCNodeLocal

public boolean isMCNodeLocal()

isMCLinkLocal

public boolean isMCLinkLocal()

isMCSiteLocal

public boolean isMCSiteLocal()

isMCOrgLocal

public boolean isMCOrgLocal()

getHostName

public String getHostName()

getCanonicalHostName

public String getCanonicalHostName()

getAddress

public byte[] getAddress()

getHostAddress

public String getHostAddress()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

toString

public String toString()
Description copied from class: Object
Returns the empty string. It's here to satisfy javac.

Overrides:
toString in class Object

getByAddress

public static InetAddress getByAddress(String,
                                       byte[])
                                throws UnknownHostException
UnknownHostException

getByName

public static InetAddress getByName(String)
                             throws UnknownHostException
UnknownHostException

getAllByName

public static InetAddress[] getAllByName(String)
                                  throws UnknownHostException
UnknownHostException

getByAddress

public static InetAddress getByAddress(byte[])
                                throws UnknownHostException
UnknownHostException

getLocalHost

public static InetAddress getLocalHost()
                                throws UnknownHostException
UnknownHostException