Inet6Address

public final class Inet6Address extends InetAddress

An IPv6 address. See InetAddress.

Public Method Summary

static Inet6Address
getByAddress(String host, byte[] addr, int scope_id)
Constructs an IPv6 address according to the given host, addr and scope_id.
static Inet6Address
getByAddress(String host, byte[] addr, NetworkInterface nif)
Gets an IPv6 address instance according to the given host, addr and nif.
int
getScopeId()
Returns the scope id if this address is scoped to an interface, 0 otherwise.
NetworkInterface
getScopedInterface()
Returns the network interface if this address is instanced with a scoped network interface, null otherwise.
boolean
isAnyLocalAddress()
Returns whether this is the IPv6 unspecified wildcard address :: or the IPv4 "any" address, 0.0.0.0.
boolean
isIPv4CompatibleAddress()
Returns whether this IPv6 address is an IPv4-compatible address or not.
boolean
isLinkLocalAddress()
Returns whether this address is a link-local address or not.
boolean
isLoopbackAddress()
Returns whether this address is a loopback address or not.
boolean
isMCGlobal()
Returns whether this address is a global multicast address or not.
boolean
isMCLinkLocal()
Returns whether this address is a link-local multicast address or not.
boolean
isMCNodeLocal()
Returns whether this address is a node-local multicast address or not.
boolean
isMCOrgLocal()
Returns whether this address is a organization-local multicast address or not.
boolean
isMCSiteLocal()
Returns whether this address is a site-local multicast address or not.
boolean
isMulticastAddress()
Returns whether this address is a multicast address or not.
boolean
isSiteLocalAddress()
Returns whether this address is a site-local address or not.
String
toString()
Returns a string containing the host name (if available) and host address.

Inherited Method Summary