|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.net.InetAddress
java.net.Inet4Address
public final class Inet4Address
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.net.InetAddress |
|---|
InetAddress.Cache, InetAddress.CacheElement |
| Field Summary |
|---|
| Fields inherited from class java.net.InetAddress |
|---|
ANY, any_bytes, family, hostName, ipaddress, localhost_bytes, LOOPBACK |
| Constructor Summary | |
|---|---|
Inet4Address(byte[] address)
|
|
Inet4Address(byte[] address,
String name)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Returns true if obj is of the same type as the IPv4 address and they have the same IP address, false otherwise. |
String |
getHostAddress()
Returns a String representation of the IP address. |
int |
hashCode()
Overrides the basic hashcode function. |
boolean |
isAnyLocalAddress()
Returns if the address is the ANY Address |
boolean |
isLinkLocalAddress()
Returns whether this address has link-local scope. |
boolean |
isLoopbackAddress()
Returns true if the address is a loopback address. |
boolean |
isMCGlobal()
Returns true if an address is a global multicast address. |
boolean |
isMCLinkLocal()
Returns true if the address is a link-local address.The valid range for IPv4 link-local addresses is: 224.0.0.0 to 239.0.0.255 Hence a mask of 111000000000000000000000 = 0xE00000 |
boolean |
isMCNodeLocal()
Returns false for all IPv4 addresses. |
boolean |
isMCOrgLocal()
Returns true if the address is a organization-local address. |
boolean |
isMCSiteLocal()
Returns true if the address is a site-local address.The valid range for IPv4 site-local addresses is: 239.255.0.0 to 239.255.255.255 Hence a mask of 11101111 11111111 = 0xEFFF. |
boolean |
isMulticastAddress()
Returns true if the address is a multicast address. |
boolean |
isSiteLocalAddress()
Returns whether this address has site-local scope. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
Inet4Address(byte[] address)
Inet4Address(byte[] address,
String name)
| Method Detail |
|---|
public boolean isMulticastAddress()
isMulticastAddress in class InetAddresspublic boolean isAnyLocalAddress()
isAnyLocalAddress in class InetAddresspublic boolean isLoopbackAddress()
isLoopbackAddress in class InetAddresspublic boolean isLinkLocalAddress()
isLinkLocalAddress in class InetAddresspublic boolean isSiteLocalAddress()
isSiteLocalAddress in class InetAddresspublic boolean isMCGlobal()
isMCGlobal in class InetAddresspublic boolean isMCNodeLocal()
isMCNodeLocal in class InetAddresspublic boolean isMCLinkLocal()
isMCLinkLocal in class InetAddresspublic boolean isMCSiteLocal()
isMCSiteLocal in class InetAddresspublic boolean isMCOrgLocal()
isMCOrgLocal in class InetAddresspublic String getHostAddress()
getHostAddress in class InetAddresspublic int hashCode()
hashCode in class InetAddressObject.equals(java.lang.Object)public boolean equals(Object obj)
equals in class InetAddressobj - the object to be tested for equality
Object.hashCode()
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||