1 /*
2 * Copyright (C) 2014 The Android Open Source Project
3 * Copyright (c) 1995, 2015, Oracle and/or its affiliates. All rights reserved.
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 *
6 * This code is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 2 only, as
8 * published by the Free Software Foundation. Oracle designates this
9 * particular file as subject to the "Classpath" exception as provided
10 * by Oracle in the LICENSE file that accompanied this code.
11 *
12 * This code is distributed in the hope that it will be useful, but WITHOUT
13 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 * version 2 for more details (a copy is included in the LICENSE file that
16 * accompanied this code).
17 *
18 * You should have received a copy of the GNU General Public License version
19 * 2 along with this work; if not, write to the Free Software Foundation,
20 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
21 *
22 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
23 * or visit www.oracle.com if you need additional information or have any
24 * questions.
25 */
26
27
28 package java.net;
29
30 import java.io.ObjectStreamException;
31 import java.io.IOException;
32
33 @SuppressWarnings({"unchecked", "deprecation", "all"})
34 public class InetAddress implements java.io.Serializable {
35
InetAddress()36 InetAddress() { throw new RuntimeException("Stub!"); }
37
isMulticastAddress()38 public boolean isMulticastAddress() { throw new RuntimeException("Stub!"); }
39
isAnyLocalAddress()40 public boolean isAnyLocalAddress() { throw new RuntimeException("Stub!"); }
41
isLoopbackAddress()42 public boolean isLoopbackAddress() { throw new RuntimeException("Stub!"); }
43
isLinkLocalAddress()44 public boolean isLinkLocalAddress() { throw new RuntimeException("Stub!"); }
45
isSiteLocalAddress()46 public boolean isSiteLocalAddress() { throw new RuntimeException("Stub!"); }
47
isMCGlobal()48 public boolean isMCGlobal() { throw new RuntimeException("Stub!"); }
49
isMCNodeLocal()50 public boolean isMCNodeLocal() { throw new RuntimeException("Stub!"); }
51
isMCLinkLocal()52 public boolean isMCLinkLocal() { throw new RuntimeException("Stub!"); }
53
isMCSiteLocal()54 public boolean isMCSiteLocal() { throw new RuntimeException("Stub!"); }
55
isMCOrgLocal()56 public boolean isMCOrgLocal() { throw new RuntimeException("Stub!"); }
57
isReachable(int timeout)58 public boolean isReachable(int timeout) throws java.io.IOException { throw new RuntimeException("Stub!"); }
59
isReachable(java.net.NetworkInterface netif, int ttl, int timeout)60 public boolean isReachable(java.net.NetworkInterface netif, int ttl, int timeout) throws java.io.IOException { throw new RuntimeException("Stub!"); }
61
isReachableByICMP(int timeout)62 public boolean isReachableByICMP(int timeout) throws java.io.IOException { throw new RuntimeException("Stub!"); }
63
getHostName()64 public java.lang.String getHostName() { throw new RuntimeException("Stub!"); }
65
getCanonicalHostName()66 public java.lang.String getCanonicalHostName() { throw new RuntimeException("Stub!"); }
67
getAddress()68 public byte[] getAddress() { throw new RuntimeException("Stub!"); }
69
getHostAddress()70 public java.lang.String getHostAddress() { throw new RuntimeException("Stub!"); }
71
hashCode()72 public int hashCode() { throw new RuntimeException("Stub!"); }
73
equals(java.lang.Object obj)74 public boolean equals(java.lang.Object obj) { throw new RuntimeException("Stub!"); }
75
toString()76 public java.lang.String toString() { throw new RuntimeException("Stub!"); }
77
getByAddress(java.lang.String host, byte[] addr)78 public static java.net.InetAddress getByAddress(java.lang.String host, byte[] addr) throws java.net.UnknownHostException { throw new RuntimeException("Stub!"); }
79
getByName(java.lang.String host)80 public static java.net.InetAddress getByName(java.lang.String host) throws java.net.UnknownHostException { throw new RuntimeException("Stub!"); }
81
getAllByName(java.lang.String host)82 public static java.net.InetAddress[] getAllByName(java.lang.String host) throws java.net.UnknownHostException { throw new RuntimeException("Stub!"); }
83
getLoopbackAddress()84 public static java.net.InetAddress getLoopbackAddress() { throw new RuntimeException("Stub!"); }
85
getByAddress(byte[] addr)86 public static java.net.InetAddress getByAddress(byte[] addr) throws java.net.UnknownHostException { throw new RuntimeException("Stub!"); }
87
getLocalHost()88 public static java.net.InetAddress getLocalHost() throws java.net.UnknownHostException { throw new RuntimeException("Stub!"); }
89
90 @android.annotation.SystemApi(client = android.annotation.SystemApi.Client.MODULE_LIBRARIES)
91 @libcore.api.CorePlatformApi(status = libcore.api.CorePlatformApi.Status.STABLE)
isNumeric(java.lang.String address)92 public static boolean isNumeric(java.lang.String address) { throw new RuntimeException("Stub!"); }
93
94 @android.annotation.SystemApi(client = android.annotation.SystemApi.Client.MODULE_LIBRARIES)
95 @libcore.api.CorePlatformApi(status = libcore.api.CorePlatformApi.Status.STABLE)
parseNumericAddress(java.lang.String numericAddress)96 public static java.net.InetAddress parseNumericAddress(java.lang.String numericAddress) { throw new RuntimeException("Stub!"); }
97
98 @android.annotation.SystemApi(client = android.annotation.SystemApi.Client.MODULE_LIBRARIES)
99 @libcore.api.CorePlatformApi(status = libcore.api.CorePlatformApi.Status.STABLE)
clearDnsCache()100 public static void clearDnsCache() { throw new RuntimeException("Stub!"); }
101
102 @android.annotation.SystemApi(client = android.annotation.SystemApi.Client.MODULE_LIBRARIES)
103 @libcore.api.CorePlatformApi(status = libcore.api.CorePlatformApi.Status.STABLE)
getByNameOnNet(java.lang.String host, int netId)104 public static java.net.InetAddress getByNameOnNet(java.lang.String host, int netId) throws java.net.UnknownHostException { throw new RuntimeException("Stub!"); }
105
106 @android.annotation.SystemApi(client = android.annotation.SystemApi.Client.MODULE_LIBRARIES)
107 @libcore.api.CorePlatformApi(status = libcore.api.CorePlatformApi.Status.STABLE)
getAllByNameOnNet(java.lang.String host, int netId)108 public static java.net.InetAddress[] getAllByNameOnNet(java.lang.String host, int netId) throws java.net.UnknownHostException { throw new RuntimeException("Stub!"); }
109 }
110
111