Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.net

Class Inet6Address

java.lang.Object
|
+--java.net.InetAddress
   |
   +--java.net.Inet6Address


public final class Inet6Address

extends InetAddress

Author:

Constructor Summary

Inet6Address(byte[] addr, java.lang.String host)

Create an Inet6Address object

Method Summary

booleanequals(java.lang.Object obj)

Compares this object against the specified object
byte[]getAddress()

Returns the raw IP address of this InetAddress object.
java.lang.StringgetHostAddress()

Returns the IP address string in textual presentation
inthashCode()

Returns a hashcode for this IP address
booleanisAnyLocalAddress()

Utility routine to check if the InetAddress in a wildcard address
booleanisIPv4CompatibleAddress()

Utility routine to check if the InetAddress is an IPv4 compatible IPv6 address
booleanisLinkLocalAddress()

Utility routine to check if the InetAddress is an link local address
booleanisLoopbackAddress()

Utility routine to check if the InetAddress is a loopback address
booleanisMCGlobal()

Utility routine to check if the multicast address has global scope
booleanisMCLinkLocal()

Utility routine to check if the multicast address has link scope
booleanisMCNodeLocal()

Utility routine to check if the multicast address has node scope
booleanisMCOrgLocal()

Utility routine to check if the multicast address has organization scope
booleanisMCSiteLocal()

Utility routine to check if the multicast address has site scope
booleanisMulticastAddress()

Utility routine to check if the InetAddress is an IP multicast address
booleanisSiteLocalAddress()

Utility routine to check if the InetAddress is a site local address

Constructor Details

Inet6Address

protected Inet6Address(byte[] addr, java.lang.String host)

Create an Inet6Address object

Parameters:


Method Details

equals

public boolean equals(java.lang.Object obj)

Compares this object against the specified object

Parameters:


getAddress

public byte[] getAddress()

Returns the raw IP address of this InetAddress object. The result is in network byte order: the highest order byte of the address is i n getAddress()[0]


getHostAddress

public String getHostAddress()

Returns the IP address string in textual presentation


hashCode

public int hashCode()

Returns a hashcode for this IP address


isAnyLocalAddress

public boolean isAnyLocalAddress()

Utility routine to check if the InetAddress in a wildcard address

Since:

isIPv4CompatibleAddress

public boolean isIPv4CompatibleAddress()

Utility routine to check if the InetAddress is an IPv4 compatible IPv6 address

Since:

isLinkLocalAddress

public boolean isLinkLocalAddress()

Utility routine to check if the InetAddress is an link local address

Since:

isLoopbackAddress

public boolean isLoopbackAddress()

Utility routine to check if the InetAddress is a loopback address

Since:

isMCGlobal

public boolean isMCGlobal()

Utility routine to check if the multicast address has global scope

Since:

isMCLinkLocal

public boolean isMCLinkLocal()

Utility routine to check if the multicast address has link scope

Since:

isMCNodeLocal

public boolean isMCNodeLocal()

Utility routine to check if the multicast address has node scope

Since:

isMCOrgLocal

public boolean isMCOrgLocal()

Utility routine to check if the multicast address has organization scope

Since:

isMCSiteLocal

public boolean isMCSiteLocal()

Utility routine to check if the multicast address has site scope

Since:

isMulticastAddress

public boolean isMulticastAddress()

Utility routine to check if the InetAddress is an IP multicast address

Since:

isSiteLocalAddress

public boolean isSiteLocalAddress()

Utility routine to check if the InetAddress is a site local address

Since: