public final class Inet6Address extends InetAddress
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Compares this object against the specified object
|
byte[] |
getAddress()
Returns the raw IP address of this InetAddress object.
|
static Inet6Address |
getByAddress(String host,
byte[] addr,
int scopeId)
Creates a scoped Inet6Address where the scope has an integer id.
|
String |
getHostAddress()
Returns the IP address string in textual presentation
|
int |
getScopeId()
Returns the scope ID of the address scope if it is a scoped adress using an
integer to identify the scope.
|
int |
hashCode()
Returns a hashcode for this IP address (The hashcode is independent of scope)
|
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
|
getAllByName, getByAddress, getByAddress, getByLiteral, getByName, getCanonicalHostName, getHostName, getLocalHost, toString
public boolean equals(Object obj)
equals
in class InetAddress
obj
- The address to test for equalitypublic byte[] getAddress()
getAddress
in class InetAddress
public static Inet6Address getByAddress(String host, byte[] addr, int scopeId) throws UnknownHostException
UnkownHostException
- if the address is an invalid number of bytes.UnknownHostException
public String getHostAddress()
getHostAddress
in class InetAddress
public int getScopeId()
public int hashCode()
hashCode
in class InetAddress
public boolean isAnyLocalAddress()
isAnyLocalAddress
in class InetAddress
public boolean isIPv4CompatibleAddress()
public boolean isLinkLocalAddress()
isLinkLocalAddress
in class InetAddress
public boolean isLoopbackAddress()
isLoopbackAddress
in class InetAddress
public boolean isMCGlobal()
isMCGlobal
in class InetAddress
public boolean isMCLinkLocal()
isMCLinkLocal
in class InetAddress
public boolean isMCNodeLocal()
isMCNodeLocal
in class InetAddress
public boolean isMCOrgLocal()
isMCOrgLocal
in class InetAddress
public boolean isMCSiteLocal()
isMCSiteLocal
in class InetAddress
public boolean isMulticastAddress()
isMulticastAddress
in class InetAddress
public boolean isSiteLocalAddress()
isSiteLocalAddress
in class InetAddress