| java.lang.Object java.net.InetAddress java.net.Inet6Address
Method Summary | |
public boolean | equals(Object obj) Returns true if obj is of the same type as the IPv6 address and they have
the same IP address, false otherwise. | public static Inet6Address | getByAddress(String host, byte[] addr, int scope_id) Constructs an IPv6 address according to the given host ,
addr and scope_id . | public static Inet6Address | getByAddress(String host, byte[] addr, NetworkInterface nif) Constructs an IPv6 address according to the given host ,
addr and nif . | public String | getHostAddress() | public int | getScopeId() Returns the scope id of this address if it is associated
with an interface. | public NetworkInterface | getScopedInterface() Returns the network interface if this address is instanced with a scoped
network interface. | public int | hashCode() Returns the hashcode of the receiver. | public boolean | isAnyLocalAddress() Answer true if the InetAddress is the unspecified address "::". | public boolean | isIPv4CompatibleAddress() An IPv4 compatible address is prefixed with 96 bits of 0's. | public boolean | isLinkLocalAddress() Answer true if the InetAddress is a link-local address. | public boolean | isLoopbackAddress() | public boolean | isMCGlobal() Answer true if the InetAddress is a global multicast address.
A valid IPv6 global multicast address is 11111111xxxx1110 (i.e. | public boolean | isMCLinkLocal() Answer true if the InetAddress is a link-local multicast address. | public boolean | isMCNodeLocal() Answer true if the InetAddress is a node-local multicast address. | public boolean | isMCOrgLocal() Answer true if the InetAddress is a org-local multicast address. | public boolean | isMCSiteLocal() Answer true if the InetAddress is a site-local multicast address. | public boolean | isMulticastAddress() Answer true if the InetAddress is an IP multicast address. | public boolean | isSiteLocalAddress() Answer true if the InetAddress is a site-local address. | public String | toString() Answers a string containing a concise, human-readable description of the
address. |
any_bytes | final static byte[] any_bytes(Code) | | |
localhost_bytes | final static byte[] localhost_bytes(Code) | | |
scope_id_set | boolean scope_id_set(Code) | | |
scope_ifname_set | boolean scope_ifname_set(Code) | | |
Inet6Address | Inet6Address(byte address)(Code) | | |
Inet6Address | Inet6Address(byte address, String name, int scope_id)(Code) | | Constructs an InetAddress, representing the address and
hostName and scope_id
Parameters: address - network address Parameters: name - Name associated with the address Parameters: scope_id - The scope id for link or site local addresses |
Inet6Address | Inet6Address(byte address, int scope_id)(Code) | | Constructs an InetAddress, representing the address and
hostName and scope_id
Parameters: address - network address Parameters: scope_id - The scope id for link or site local addresses |
equals | public boolean equals(Object obj)(Code) | | Returns true if obj is of the same type as the IPv6 address and they have
the same IP address, false otherwise. the scope id does not seem to be
part of the comparison
String |
getByAddress | public static Inet6Address getByAddress(String host, byte[] addr, int scope_id) throws UnknownHostException(Code) | | Constructs an IPv6 address according to the given host ,
addr and scope_id .
Parameters: host - hostname associated with the address Parameters: addr - network address Parameters: scope_id - the scope id for link or site local addresses an Inet6Address instance throws: UnknownHostException - if the address is null or of invalid length |
getByAddress | public static Inet6Address getByAddress(String host, byte[] addr, NetworkInterface nif) throws UnknownHostException(Code) | | Constructs an IPv6 address according to the given host ,
addr and nif . scope_id is
set according to the given nif and the
addr type(e.g. site local or link local).
Parameters: host - host name associated with the address Parameters: addr - network address Parameters: nif - the Network Interface that this address is associated with. an Inet6Address instance throws: UnknownHostException - if the address is null or of invalid length, or theinterface doesn't have a numeric scope id for the givenaddress type. |
getScopeId | public int getScopeId()(Code) | | Returns the scope id of this address if it is associated
with an interface. Otherwise returns zero.
the scope_id. |
getScopedInterface | public NetworkInterface getScopedInterface()(Code) | | Returns the network interface if this address is instanced with a scoped
network interface. Otherwise returns null.
the scoped network interface. |
hashCode | public int hashCode()(Code) | | Returns the hashcode of the receiver.
the hashcode |
isAnyLocalAddress | public boolean isAnyLocalAddress()(Code) | | Answer true if the InetAddress is the unspecified address "::".
boolean true, if the address is in the multicast group, falseotherwise |
isIPv4CompatibleAddress | public boolean isIPv4CompatibleAddress()(Code) | | An IPv4 compatible address is prefixed with 96 bits of 0's. The last
32-bits are varied corresponding with the 32-bit IPv4 address space.
|
isLinkLocalAddress | public boolean isLinkLocalAddress()(Code) | | Answer true if the InetAddress is a link-local address.
A valid IPv6 link-local address is prefixed with 1111111010
boolean true, if it is a link-local address, false otherwise |
isLoopbackAddress | public boolean isLoopbackAddress()(Code) | | Answer true if the InetAddress is the loopback address
The valid IPv6 loopback address is ::1
boolean true if the address is the loopback, false otherwise |
isMCGlobal | public boolean isMCGlobal()(Code) | | Answer true if the InetAddress is a global multicast address.
A valid IPv6 global multicast address is 11111111xxxx1110 (i.e. FF0E)
boolean true, if it is a global multicast address, falseotherwise |
isMCLinkLocal | public boolean isMCLinkLocal()(Code) | | Answer true if the InetAddress is a link-local multicast address.
A valid IPv6 link-local multicast address is prefixed with
11111111xxxx0010
boolean true, if it is a link-local multicast address, falseotherwise |
isMCNodeLocal | public boolean isMCNodeLocal()(Code) | | Answer true if the InetAddress is a node-local multicast address.
A valid IPv6 node-local multicast address is prefixed with
11111111xxxx0001
boolean true, if it is a node-local multicast address, falseotherwise |
isMCOrgLocal | public boolean isMCOrgLocal()(Code) | | Answer true if the InetAddress is a org-local multicast address.
A valid IPv6 org-local multicast address is prefixed with
11111111xxxx1000
boolean true, if it is a org-local multicast address, falseotherwise |
isMCSiteLocal | public boolean isMCSiteLocal()(Code) | | Answer true if the InetAddress is a site-local multicast address.
A valid IPv6 site-local multicast address is prefixed with
11111111xxxx0101
boolean true, if it is a site-local multicast address, falseotherwise |
isMulticastAddress | public boolean isMulticastAddress()(Code) | | Answer true if the InetAddress is an IP multicast address.
Valid IPv6 multicast address have the binary prefixed with 11111111 or FF
(hex).
boolean true, if the address is in the multicast group, falseotherwise |
isSiteLocalAddress | public boolean isSiteLocalAddress()(Code) | | Answer true if the InetAddress is a site-local address.
A valid IPv6 site-local address is prefixed with 1111111011
boolean true, if it is a site-local address, false otherwise |
toString | public String toString()(Code) | | Answers a string containing a concise, human-readable description of the
address.
String the description, as host/address |
Methods inherited from java.net.InetAddress | static int bytesToInt(byte bytes, int start)(Code)(Java Doc) CacheElement cacheElement()(Code)(Java Doc) static InetAddress createHostNameFromIPAddress(String ipAddressString) throws UnknownHostException(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) public byte[] getAddress()(Code)(Java Doc) native static InetAddress[] getAliasesByNameImpl(String name) throws UnknownHostException(Code)(Java Doc) public static InetAddress[] getAllByName(String host) throws UnknownHostException(Code)(Java Doc) public static InetAddress getByAddress(byte[] ipAddress) throws UnknownHostException(Code)(Java Doc) static InetAddress getByAddress(byte[] ipAddress, int scope_id) throws UnknownHostException(Code)(Java Doc) public static InetAddress getByAddress(String hostName, byte[] ipAddress) throws UnknownHostException(Code)(Java Doc) static InetAddress getByAddressInternal(String hostName, byte[] ipAddress, int scope_id) throws UnknownHostException(Code)(Java Doc) public static InetAddress getByName(String host) throws UnknownHostException(Code)(Java Doc) public String getCanonicalHostName()(Code)(Java Doc) public String getHostAddress()(Code)(Java Doc) native static InetAddress getHostByAddrImpl(byte[] addr) throws UnknownHostException(Code)(Java Doc) native static InetAddress getHostByNameImpl(String name, boolean preferIPv6Address) throws UnknownHostException(Code)(Java Doc) public String getHostName()(Code)(Java Doc) native static String getHostNameImpl()(Code)(Java Doc) static String getHostNameInternal(String host) throws UnknownHostException(Code)(Java Doc) public static InetAddress getLocalHost() throws UnknownHostException(Code)(Java Doc) public int hashCode()(Code)(Java Doc) static int inetAddr(String host) throws UnknownHostException(Code)(Java Doc) native static int inetAddrImpl(String host) throws UnknownHostException(Code)(Java Doc) native static String inetNtoaImpl(int hipAddr)(Code)(Java Doc) static void intToBytes(int value, byte bytes, int start)(Code)(Java Doc) public boolean isAnyLocalAddress()(Code)(Java Doc) public boolean isLinkLocalAddress()(Code)(Java Doc) public boolean isLoopbackAddress()(Code)(Java Doc) public boolean isMCGlobal()(Code)(Java Doc) public boolean isMCLinkLocal()(Code)(Java Doc) public boolean isMCNodeLocal()(Code)(Java Doc) public boolean isMCOrgLocal()(Code)(Java Doc) public boolean isMCSiteLocal()(Code)(Java Doc) public boolean isMulticastAddress()(Code)(Java Doc) public boolean isReachable(int timeout) throws IOException(Code)(Java Doc) public boolean isReachable(NetworkInterface netif, int ttl, int timeout) throws IOException(Code)(Java Doc) public boolean isSiteLocalAddress()(Code)(Java Doc) static synchronized InetAddress lookupHostByName(String host) throws UnknownHostException(Code)(Java Doc) static boolean preferIPv6Addresses()(Code)(Java Doc) public String toString()(Code)(Java Doc)
|
|
|