< prev index next >
src/java.base/share/classes/java/net/InetAddress.java
Print this page
*** 1166,1176 ****
/**
* Creates an InetAddress based on the provided host name and IP address.
* No name service is checked for the validity of the address.
*
* <p> The host name can either be a machine name, such as
! * "{@code java.sun.com}", or a textual representation of its IP
* address.
* <p> No validity checking is done on the host name either.
*
* <p> If addr specifies an IPv4 address an instance of Inet4Address
* will be returned; otherwise, an instance of Inet6Address
--- 1166,1176 ----
/**
* Creates an InetAddress based on the provided host name and IP address.
* No name service is checked for the validity of the address.
*
* <p> The host name can either be a machine name, such as
! * "{@code www.example.com}", or a textual representation of its IP
* address.
* <p> No validity checking is done on the host name either.
*
* <p> If addr specifies an IPv4 address an instance of Inet4Address
* will be returned; otherwise, an instance of Inet6Address
*** 1211,1221 ****
/**
* Determines the IP address of a host, given the host's name.
*
* <p> The host name can either be a machine name, such as
! * "{@code java.sun.com}", or a textual representation of its
* IP address. If a literal IP address is supplied, only the
* validity of the address format is checked.
*
* <p> For {@code host} specified in literal IPv6 address,
* either the form defined in RFC 2732 or the literal IPv6 address
--- 1211,1221 ----
/**
* Determines the IP address of a host, given the host's name.
*
* <p> The host name can either be a machine name, such as
! * "{@code www.example.com}", or a textual representation of its
* IP address. If a literal IP address is supplied, only the
* validity of the address format is checked.
*
* <p> For {@code host} specified in literal IPv6 address,
* either the form defined in RFC 2732 or the literal IPv6 address
*** 1257,1267 ****
/**
* Given the name of a host, returns an array of its IP addresses,
* based on the configured name service on the system.
*
* <p> The host name can either be a machine name, such as
! * "{@code java.sun.com}", or a textual representation of its IP
* address. If a literal IP address is supplied, only the
* validity of the address format is checked.
*
* <p> For {@code host} specified in <i>literal IPv6 address</i>,
* either the form defined in RFC 2732 or the literal IPv6 address
--- 1257,1267 ----
/**
* Given the name of a host, returns an array of its IP addresses,
* based on the configured name service on the system.
*
* <p> The host name can either be a machine name, such as
! * "{@code www.example.com}", or a textual representation of its IP
* address. If a literal IP address is supplied, only the
* validity of the address format is checked.
*
* <p> For {@code host} specified in <i>literal IPv6 address</i>,
* either the form defined in RFC 2732 or the literal IPv6 address
< prev index next >