java.net
public final class Inet6Address extends InetAddress
Method Summary | |
---|---|
boolean | equals(Object obj)
Compares this object against the specified object |
byte[] | getAddress()
Returns the raw IP address of this InetAddress object. |
static Inet6Address | getByAddress(String host, byte[] addr, int scopeId)
Creates a scoped Inet6Address where the scope has an integer id.
|
static Inet6Address | getByAddress(String host, byte[] addr, NetworkInterface nif)
Creates a scoped Inet6Address where the scope is a given
NetworkInterface.
|
String | getHostAddress()
Returns the IP address string in textual presentation |
NetworkInterface | getScopedInterface()
Returns the NetworkInterface of the address scope
if it is a scoped address and the scope is given in the form of a
NetworkInterface.
|
int | getScopeId()
Returns the scope ID of the address scope if it is a scoped adress using
an integer to identify the scope.
|
int | hashCode()
Returns a hashcode for this IP address
(The hashcode is independent of scope) |
boolean | isAnyLocalAddress()
Utility routine to check if the InetAddress in a wildcard address
|
boolean | isIPv4CompatibleAddress()
Utility routine to check if the InetAddress is an
IPv4 compatible IPv6 address
|
boolean | isLinkLocalAddress()
Utility routine to check if the InetAddress is an link local address
|
boolean | isLoopbackAddress()
Utility routine to check if the InetAddress is a loopback address
|
boolean | isMCGlobal()
Utility routine to check if the multicast address has global scope
|
boolean | isMCLinkLocal()
Utility routine to check if the multicast address has link scope
|
boolean | isMCNodeLocal()
Utility routine to check if the multicast address has node scope
|
boolean | isMCOrgLocal()
Utility routine to check if the multicast address has organization scope
|
boolean | isMCSiteLocal()
Utility routine to check if the multicast address has site scope
|
boolean | isMulticastAddress()
Utility routine to check if the InetAddress is an IP multicast address
|
boolean | isSiteLocalAddress()
Utility routine to check if the InetAddress is a site local address
|
Throws: UnkownHostException if the address is an invalid number of bytes.
Since: 1.5
Throws: UnkownHostException if the address is an invalid number of bytes.
Since: 1.5
NetworkInterface
of the address scope
if it is a scoped address and the scope is given in the form of a
NetworkInterface.
(I.e. the address was created using the
getByAddress(String, byte[], NetworkInterface) method)
Otherwise this method returns null
.Since: 1.5
Since: 1.5
Since: 1.4
Since: 1.4
Since: 1.4
Since: 1.4
Since: 1.4
Since: 1.4
Since: 1.4
Since: 1.4
Since: 1.4
Since: 1.1
Since: 1.4