Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

java.net
Class Inet6Address  view Inet6Address download Inet6Address.java

java.lang.Object
  extended byjava.net.InetAddress
      extended byjava.net.Inet6Address
All Implemented Interfaces:
java.io.Serializable

public final class Inet6Address
extends InetAddress


Field Summary
(package private)  byte[] ipaddress
          Needed for serialization
(package private) static long serialVersionUID
           
 
Fields inherited from class java.net.InetAddress
addr, ANY_IF, family, hostName, LOCALHOST
 
Constructor Summary
(package private) Inet6Address(byte[] addr, java.lang.String host)
          Create an Inet6Address object
 
Method Summary
 boolean equals(java.lang.Object obj)
          Compares this object against the specified object
 byte[] getAddress()
          Returns the raw IP address of this InetAddress object.
 java.lang.String getHostAddress()
          Returns the IP address string in textual presentation
 int hashCode()
          Returns a hashcode for this IP address
 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
 
Methods inherited from class java.net.InetAddress
getAllByName, getByAddress, getByAddress, getByName, getCanonicalHostName, getHostName, getInaddrAny, getLocalHost, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

ipaddress

byte[] ipaddress
Needed for serialization

Constructor Detail

Inet6Address

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

Method Detail

isMulticastAddress

public boolean isMulticastAddress()
Utility routine to check if the InetAddress is an IP multicast address

Overrides:
isMulticastAddress in class InetAddress
Since:
1.1

isAnyLocalAddress

public boolean isAnyLocalAddress()
Utility routine to check if the InetAddress in a wildcard address

Overrides:
isAnyLocalAddress in class InetAddress
Since:
1.4

isLoopbackAddress

public boolean isLoopbackAddress()
Utility routine to check if the InetAddress is a loopback address

Overrides:
isLoopbackAddress in class InetAddress
Since:
1.4

isLinkLocalAddress

public boolean isLinkLocalAddress()
Utility routine to check if the InetAddress is an link local address

Overrides:
isLinkLocalAddress in class InetAddress
Since:
1.4

isSiteLocalAddress

public boolean isSiteLocalAddress()
Utility routine to check if the InetAddress is a site local address

Overrides:
isSiteLocalAddress in class InetAddress
Since:
1.4

isMCGlobal

public boolean isMCGlobal()
Utility routine to check if the multicast address has global scope

Overrides:
isMCGlobal in class InetAddress
Since:
1.4

isMCNodeLocal

public boolean isMCNodeLocal()
Utility routine to check if the multicast address has node scope

Overrides:
isMCNodeLocal in class InetAddress
Since:
1.4

isMCLinkLocal

public boolean isMCLinkLocal()
Utility routine to check if the multicast address has link scope

Overrides:
isMCLinkLocal in class InetAddress
Since:
1.4

isMCSiteLocal

public boolean isMCSiteLocal()
Utility routine to check if the multicast address has site scope

Overrides:
isMCSiteLocal in class InetAddress
Since:
1.4

isMCOrgLocal

public boolean isMCOrgLocal()
Utility routine to check if the multicast address has organization scope

Overrides:
isMCOrgLocal in class InetAddress
Since:
1.4

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]

Overrides:
getAddress in class InetAddress

getHostAddress

public java.lang.String getHostAddress()
Returns the IP address string in textual presentation

Overrides:
getHostAddress in class InetAddress

hashCode

public int hashCode()
Returns a hashcode for this IP address

Overrides:
hashCode in class InetAddress

equals

public boolean equals(java.lang.Object obj)
Compares this object against the specified object

Overrides:
equals in class InetAddress

isIPv4CompatibleAddress

public boolean isIPv4CompatibleAddress()
Utility routine to check if the InetAddress is an IPv4 compatible IPv6 address

Since:
1.4