|
|||||||||
| Home >> All >> java >> [ net overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.net
Class Inet6Address

java.lang.Objectjava.net.InetAddress
java.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:
isMulticastAddressin classInetAddress
- Since:
- 1.1
isAnyLocalAddress
public boolean isAnyLocalAddress()
- Utility routine to check if the InetAddress in a wildcard address
- Overrides:
isAnyLocalAddressin classInetAddress
- Since:
- 1.4
isLoopbackAddress
public boolean isLoopbackAddress()
- Utility routine to check if the InetAddress is a loopback address
- Overrides:
isLoopbackAddressin classInetAddress
- Since:
- 1.4
isLinkLocalAddress
public boolean isLinkLocalAddress()
- Utility routine to check if the InetAddress is an link local address
- Overrides:
isLinkLocalAddressin classInetAddress
- Since:
- 1.4
isSiteLocalAddress
public boolean isSiteLocalAddress()
- Utility routine to check if the InetAddress is a site local address
- Overrides:
isSiteLocalAddressin classInetAddress
- Since:
- 1.4
isMCGlobal
public boolean isMCGlobal()
- Utility routine to check if the multicast address has global scope
- Overrides:
isMCGlobalin classInetAddress
- Since:
- 1.4
isMCNodeLocal
public boolean isMCNodeLocal()
- Utility routine to check if the multicast address has node scope
- Overrides:
isMCNodeLocalin classInetAddress
- Since:
- 1.4
isMCLinkLocal
public boolean isMCLinkLocal()
- Utility routine to check if the multicast address has link scope
- Overrides:
isMCLinkLocalin classInetAddress
- Since:
- 1.4
isMCSiteLocal
public boolean isMCSiteLocal()
- Utility routine to check if the multicast address has site scope
- Overrides:
isMCSiteLocalin classInetAddress
- Since:
- 1.4
isMCOrgLocal
public boolean isMCOrgLocal()
- Utility routine to check if the multicast address has organization scope
- Overrides:
isMCOrgLocalin classInetAddress
- 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:
getAddressin classInetAddress
getHostAddress
public java.lang.String getHostAddress()
- Returns the IP address string in textual presentation
- Overrides:
getHostAddressin classInetAddress
hashCode
public int hashCode()
- Returns a hashcode for this IP address
- Overrides:
hashCodein classInetAddress
equals
public boolean equals(java.lang.Object obj)
- Compares this object against the specified object
- Overrides:
equalsin classInetAddress
isIPv4CompatibleAddress
public boolean isIPv4CompatibleAddress()
- Utility routine to check if the InetAddress is an
IPv4 compatible IPv6 address
- Since:
- 1.4
|
|||||||||
| Home >> All >> java >> [ net overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC