| java.lang.Object | ||
| ↳ | java.net.InetAddress | |
| ↳ | java.net.Inet6Address | |
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns true if obj is of the same type as the IPv6 address and they have
the same IP address, false otherwise.
| |||||||||||
Constructs an IPv6 address according to the given
host,
addr and nif. | |||||||||||
Constructs an IPv6 address according to the given
host,
addr and scope_id. | |||||||||||
Answer the dotted string IP address representing this address.
| |||||||||||
Returns the
scope id of this address if it is associated
with an interface. | |||||||||||
Returns the network interface if this address is instanced with a scoped
network interface.
| |||||||||||
Returns the hashcode of the receiver.
| |||||||||||
Answer true if the InetAddress is the unspecified address "::".
| |||||||||||
An IPv4 compatible address is prefixed with 96 bits of 0's.
| |||||||||||
Answer true if the InetAddress is a link-local address.
| |||||||||||
Answer true if the InetAddress is the loopback address
The valid IPv6 loopback address is ::1
| |||||||||||
Answer true if the InetAddress is a global multicast address.
| |||||||||||
Answer true if the InetAddress is a link-local multicast address.
| |||||||||||
Answer true if the InetAddress is a node-local multicast address.
| |||||||||||
Answer true if the InetAddress is a org-local multicast address.
| |||||||||||
Answer true if the InetAddress is a site-local multicast address.
| |||||||||||
Answer true if the InetAddress is an IP multicast address.
| |||||||||||
Answer true if the InetAddress is a site-local address.
| |||||||||||
Returns a string containing a concise, human-readable description of the
address.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class java.net.InetAddress
| |||||||||||
From class java.lang.Object
| |||||||||||
Returns true if obj is of the same type as the IPv6 address and they have the same IP address, false otherwise. the scope id does not seem to be part of the comparison
| obj | the object to be tested for equality |
|---|
Constructs an IPv6 address according to the given host,
addr and nif. scope_id is
set according to the given nif and the
addr type(e.g. site local or link local).
| host | host name associated with the address |
|---|---|
| addr | network address |
| nif | the Network Interface that this address is associated with. |
| UnknownHostException | if the address is null or of invalid length, or the interface doesn't have a numeric scope id for the given address type. |
|---|
Constructs an IPv6 address according to the given host,
addr and scope_id.
| host | hostname associated with the address |
|---|---|
| addr | network address |
| scope_id | the scope id for link or site local addresses |
| UnknownHostException | if the address is null or of invalid length |
|---|
Answer the dotted string IP address representing this address.
Returns the scope id of this address if it is associated
with an interface. Otherwise returns zero.
Returns the network interface if this address is instanced with a scoped network interface. Otherwise returns null.
Returns the hashcode of the receiver.
Answer true if the InetAddress is the unspecified address "::".
An IPv4 compatible address is prefixed with 96 bits of 0's. The last 32-bits are varied corresponding with the 32-bit IPv4 address space.
Answer true if the InetAddress is a link-local address. A valid IPv6 link-local address is prefixed with 1111111010
Answer true if the InetAddress is the loopback address The valid IPv6 loopback address is ::1
Answer true if the InetAddress is a global multicast address. A valid IPv6 global multicast address is 11111111xxxx1110 (i.e. FF0E)
Answer true if the InetAddress is a link-local multicast address. A valid IPv6 link-local multicast address is prefixed with 11111111xxxx0010
Answer true if the InetAddress is a node-local multicast address. A valid IPv6 node-local multicast address is prefixed with 11111111xxxx0001
Answer true if the InetAddress is a org-local multicast address. A valid IPv6 org-local multicast address is prefixed with 11111111xxxx1000
Answer true if the InetAddress is a site-local multicast address. A valid IPv6 site-local multicast address is prefixed with 11111111xxxx0101
Answer true if the InetAddress is an IP multicast address. Valid IPv6 multicast address have the binary prefixed with 11111111 or FF (hex).
Answer true if the InetAddress is a site-local address. A valid IPv6 site-local address is prefixed with 1111111011
Returns a string containing a concise, human-readable description of the address.