getByAddress
Returns an InetAddress object given the raw IP address . The argument is in network byte order: the highest order byte of the address is in getAddress()[0].
This method doesn't block, i.e. no reverse lookup is performed.
IPv4 address byte array must be 4 bytes long and IPv6 byte array must be 16 bytes long
Return
an InetAddress object created from the raw IP address.
Since
1.4
Parameters
the raw IP address in network byte order
Throws
if IP address is of illegal length
Creates an InetAddress based on the provided host name and IP address. The system-wide InetAddressResolver is not used to check the validity of the address.
The host name can either be a machine name, such as "www.example.com", or a textual representation of its IP address.
No validity checking is done on the host name either.
If addr specifies an IPv4 address an instance of Inet4Address will be returned; otherwise, an instance of Inet6Address will be returned.
IPv4 address byte array must be 4 bytes long and IPv6 byte array must be 16 bytes long
Return
an InetAddress object created from the raw IP address.
Since
1.4
Parameters
the specified host
the raw IP address in network byte order
Throws
if IP address is of illegal length