|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.net.InetAddress
public class InetAddress
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
byte[] |
getAddress()
Return this host's IP address |
static InetAddress[] |
getAllByName(String host)
|
static InetAddress |
getByAddress(byte[] addr)
|
static InetAddress |
getByName(String host)
|
String |
getHostAddress()
Return IP address as a period-delimited series of decimals |
String |
getHostName()
|
static InetAddress |
getLocalHost()
|
int |
hashCode()
|
boolean |
isMulticastAddress()
|
static String |
toIpAddressString(byte[] inetAddressBytes)
Format an array of bytes as a period-delimited series of decimals |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public boolean isMulticastAddress()
public String getHostName()
public byte[] getAddress()
public String getHostAddress()
public static String toIpAddressString(byte[] inetAddressBytes)
inetAddressBytes -
public int hashCode()
hashCode in class Objectpublic boolean equals(Object o)
equals in class Objectpublic String toString()
toString in class Object
public static InetAddress getByName(String host)
throws UnknownHostException
UnknownHostException
public static InetAddress getByAddress(byte[] addr)
throws UnknownHostException
UnknownHostException
public static InetAddress[] getAllByName(String host)
throws UnknownHostException
UnknownHostException
public static InetAddress getLocalHost()
throws UnknownHostException
UnknownHostException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||