java.lang.Object | ||
↳ | java.net.InetAddress | |
↳ | java.net.Inet4Address |
An IPv4 address. See InetAddress
.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns whether the represented address is the local wildcard ANY address
or not.
| |||||||||||
Returns whether this address has a link-local scope or not.
| |||||||||||
Returns whether the represented address is a loopback address or not.
| |||||||||||
Returns whether the address is a global multicast address or not.
| |||||||||||
Returns whether the address is a link-local multicast address or not.
| |||||||||||
Returns whether the address has a node-local scope or not.
| |||||||||||
Returns whether the address is a organization-local multicast address or
not.
| |||||||||||
Returns whether the address is a site-local multicast address or not.
| |||||||||||
Returns whether the represented address is a multicast address or not.
| |||||||||||
Returns whether this address has a site-local scope or not.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.net.InetAddress
| |||||||||||
From class
java.lang.Object
|
Returns whether the represented address is the local wildcard ANY address or not.
true
if this instance represents the wildcard ANY
address, false
otherwise.
Returns whether this address has a link-local scope or not.
RFC 3484
Default Address Selection for Internet Protocol Version 6 (IPv6) states
IPv4 auto-configuration addresses, prefix 169.254/16, IPv4 loopback
addresses, prefix 127/8, are assigned link-local scope.
true
if this instance represents a link-local address,
false
otherwise.
Returns whether the represented address is a loopback address or not. Loopback IPv4 addresses are prefixed with: 011111111 = 127.
true
if this instance represents a lookback address,
false
otherwise.
Returns whether the address is a global multicast address or not. Valid MCGlobal IPv4 addresses are 224.0.1.0 - 238.255.255.255.
true
if the address is in the global multicast group,
false
otherwise.
Returns whether the address is a link-local multicast address or not. The valid range for IPv4 link-local addresses is: 224.0.0.0 to 239.0.0.255 Hence a mask of 111000000000000000000000 = 0xE00000.
true
if this instance represents a link-local address,
false
otherwise.
Returns whether the address has a node-local scope or not. This method
returns always false
because there are no valid IPv4 node-local
addresses.
false
for all IPv4 addresses.
Returns whether the address is a organization-local multicast address or not. The valid range for IPv4 organization-local addresses is: 239.192.0.0 to 239.195.255.255 Hence masks of 11101111 11000000 to 11101111 11000011 are valid. 0xEFC0 to 0xEFC3
true
if this instance represents a organization-local
address, false
otherwise.
Returns whether the address is a site-local multicast address or not. 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.
true
if this instance represents a site-local address,
false
otherwise.
Returns whether the represented address is a multicast address or not. Valid IPv4 multicast addresses are prefixed with 1110 = 0xE.
true
if this instance represents a multicast address,
false
otherwise.
Returns whether this address has a site-local scope or not.
RFC 3484
Default Address Selection for Internet Protocol Version 6 (IPv6) states
IPv4 private addresses, prefixes 10/8, 172.16/12, and 192.168/16, are
assigned site-local scope.
true
if this instance represents a site-local address,
false
otherwise.