Lines Matching defs:InetAddress

57  * InetAddress consists of an IP address and possibly its
127 * <p> The InetAddress class provides methods to resolve host names to
130 * <h4> InetAddress Caching </h4>
132 * The InetAddress class has a cache to store successful as well as
175 * @see java.net.InetAddress#getByAddress(byte[])
176 * @see java.net.InetAddress#getByAddress(java.lang.String, byte[])
177 * @see java.net.InetAddress#getAllByName(java.lang.String)
178 * @see java.net.InetAddress#getByName(java.lang.String)
179 * @see java.net.InetAddress#getLocalHost()
183 class InetAddress implements java.io.Serializable {
260 public InetAddress[] lookupAllHostAddr(String host, int netId)
278 * This creates an empty InetAddress, which is filled in by
279 * the accept() method. This InetAddress, however, is not
282 InetAddress() {
300 * Utility routine to check if the InetAddress is an
302 * @return a {@code boolean} indicating if the InetAddress is
311 * Utility routine to check if the InetAddress in a wildcard address.
321 * Utility routine to check if the InetAddress is a loopback address.
323 * @return a {@code boolean} indicating if the InetAddress is
332 * Utility routine to check if the InetAddress is an link local address.
334 * @return a {@code boolean} indicating if the InetAddress is
343 * Utility routine to check if the InetAddress is a site local address.
345 * @return a {@code boolean} indicating if the InetAddress is
491 * <p>If this InetAddress was created with a host name,
510 * @see InetAddress#getCanonicalHostName
515 holder().hostName = InetAddress.getHostFromNameService(this);
543 canonicalHostName = InetAddress.getHostFromNameService(this);
565 private static String getHostFromNameService(InetAddress addr) {
575 InetAddress[] arr = nameService.lookupAllHostAddr(host, NETID_UNSET);
597 * Returns the raw IP address of this {@code InetAddress}
632 * Two instances of {@code InetAddress} represent the same IP
640 * @see java.net.InetAddress#getAddress()
663 * Creates an InetAddress based on the provided host name and IP address.
680 * @return an InetAddress object created from the raw IP address.
684 public static InetAddress getByAddress(String host, byte[] addr) throws UnknownHostException {
689 private static InetAddress getByAddress(String host, byte[] addr, int scopeId)
727 * <p> If the host is {@code null} then an {@code InetAddress}
741 public static InetAddress getByName(String host)
761 * <p> If the host is {@code null} then an {@code InetAddress}
785 public static InetAddress[] getAllByName(String host)
793 * The InetAddress returned will represent the IPv4
798 * @return the InetAddress loopback instance.
801 public static InetAddress getLoopbackAddress() {
806 * Returns an {@code InetAddress} object given the raw IP address .
817 * @return an InetAddress object created from the raw IP address.
821 public static InetAddress getByAddress(byte[] addr)
829 * an {@code InetAddress}.
838 * If the operation is not allowed, an InetAddress representing
847 * @see java.net.InetAddress#getByName(java.lang.String)
849 public static InetAddress getLocalHost() throws UnknownHostException {
855 * Returns the InetAddress representing anyLocalAddress
858 static InetAddress anyLocalAddress() {
917 * This copes with all forms of address that Java supports, detailed in the {@link InetAddress}
923 InetAddress inetAddress = parseNumericAddressNoThrow(address);
927 static InetAddress parseNumericAddressNoThrow(String address) {
934 InetAddress[] addresses = null;
942 static InetAddress disallowDeprecatedFormats(String address, InetAddress inetAddress) {
954 * Returns an InetAddress corresponding to the given numeric address (such
961 public static InetAddress parseNumericAddress(String numericAddress) {
965 InetAddress result = parseNumericAddressNoThrow(numericAddress);
989 * @return the {@code InetAddress} instance representing the host.
993 public static InetAddress getByNameOnNet(String host, int netId) throws UnknownHostException {
1007 public static InetAddress[] getAllByNameOnNet(String host, int netId) throws UnknownHostException {
1012 static InetAddress[] getAllByName0(String authHost, boolean check) throws UnknownHostException {