• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 package java.net;
28 
29 import dalvik.annotation.compat.UnsupportedAppUsage;
30 import dalvik.system.VersionCodes;
31 
32 @SuppressWarnings({"unchecked", "deprecation", "all"})
33 public class InetAddress implements java.io.Serializable {
34 
InetAddress()35     InetAddress() {
36         throw new RuntimeException("Stub!");
37     }
38 
39     @UnsupportedAppUsage
holder()40     java.net.InetAddress.InetAddressHolder holder() {
41         throw new RuntimeException("Stub!");
42     }
43 
readResolve()44     private java.lang.Object readResolve() throws java.io.ObjectStreamException {
45         throw new RuntimeException("Stub!");
46     }
47 
isMulticastAddress()48     public boolean isMulticastAddress() {
49         throw new RuntimeException("Stub!");
50     }
51 
isAnyLocalAddress()52     public boolean isAnyLocalAddress() {
53         throw new RuntimeException("Stub!");
54     }
55 
isLoopbackAddress()56     public boolean isLoopbackAddress() {
57         throw new RuntimeException("Stub!");
58     }
59 
isLinkLocalAddress()60     public boolean isLinkLocalAddress() {
61         throw new RuntimeException("Stub!");
62     }
63 
isSiteLocalAddress()64     public boolean isSiteLocalAddress() {
65         throw new RuntimeException("Stub!");
66     }
67 
isMCGlobal()68     public boolean isMCGlobal() {
69         throw new RuntimeException("Stub!");
70     }
71 
isMCNodeLocal()72     public boolean isMCNodeLocal() {
73         throw new RuntimeException("Stub!");
74     }
75 
isMCLinkLocal()76     public boolean isMCLinkLocal() {
77         throw new RuntimeException("Stub!");
78     }
79 
isMCSiteLocal()80     public boolean isMCSiteLocal() {
81         throw new RuntimeException("Stub!");
82     }
83 
isMCOrgLocal()84     public boolean isMCOrgLocal() {
85         throw new RuntimeException("Stub!");
86     }
87 
isReachable(int timeout)88     public boolean isReachable(int timeout) throws java.io.IOException {
89         throw new RuntimeException("Stub!");
90     }
91 
isReachable(java.net.NetworkInterface netif, int ttl, int timeout)92     public boolean isReachable(java.net.NetworkInterface netif, int ttl, int timeout)
93             throws java.io.IOException {
94         throw new RuntimeException("Stub!");
95     }
96 
isReachableByICMP(int timeout)97     public boolean isReachableByICMP(int timeout) throws java.io.IOException {
98         throw new RuntimeException("Stub!");
99     }
100 
getHostName()101     public java.lang.String getHostName() {
102         throw new RuntimeException("Stub!");
103     }
104 
getCanonicalHostName()105     public java.lang.String getCanonicalHostName() {
106         throw new RuntimeException("Stub!");
107     }
108 
getHostFromNameService(java.net.InetAddress addr)109     private static java.lang.String getHostFromNameService(java.net.InetAddress addr) {
110         throw new RuntimeException("Stub!");
111     }
112 
getAddress()113     public byte[] getAddress() {
114         throw new RuntimeException("Stub!");
115     }
116 
getHostAddress()117     public java.lang.String getHostAddress() {
118         throw new RuntimeException("Stub!");
119     }
120 
hashCode()121     public int hashCode() {
122         throw new RuntimeException("Stub!");
123     }
124 
equals(java.lang.Object obj)125     public boolean equals(java.lang.Object obj) {
126         throw new RuntimeException("Stub!");
127     }
128 
toString()129     public java.lang.String toString() {
130         throw new RuntimeException("Stub!");
131     }
132 
getByAddress(java.lang.String host, byte[] addr)133     public static java.net.InetAddress getByAddress(java.lang.String host, byte[] addr)
134             throws java.net.UnknownHostException {
135         throw new RuntimeException("Stub!");
136     }
137 
getByAddress( java.lang.String host, byte[] addr, int scopeId)138     private static java.net.InetAddress getByAddress(
139             java.lang.String host, byte[] addr, int scopeId) throws java.net.UnknownHostException {
140         throw new RuntimeException("Stub!");
141     }
142 
getByName(java.lang.String host)143     public static java.net.InetAddress getByName(java.lang.String host)
144             throws java.net.UnknownHostException {
145         throw new RuntimeException("Stub!");
146     }
147 
getAllByName(java.lang.String host)148     public static java.net.InetAddress[] getAllByName(java.lang.String host)
149             throws java.net.UnknownHostException {
150         throw new RuntimeException("Stub!");
151     }
152 
getLoopbackAddress()153     public static java.net.InetAddress getLoopbackAddress() {
154         throw new RuntimeException("Stub!");
155     }
156 
getByAddress(byte[] addr)157     public static java.net.InetAddress getByAddress(byte[] addr)
158             throws java.net.UnknownHostException {
159         throw new RuntimeException("Stub!");
160     }
161 
getLocalHost()162     public static java.net.InetAddress getLocalHost() throws java.net.UnknownHostException {
163         throw new RuntimeException("Stub!");
164     }
165 
anyLocalAddress()166     static java.net.InetAddress anyLocalAddress() {
167         throw new RuntimeException("Stub!");
168     }
169 
readObjectNoData(java.io.ObjectInputStream s)170     private void readObjectNoData(java.io.ObjectInputStream s)
171             throws java.lang.ClassNotFoundException, java.io.IOException {
172         throw new RuntimeException("Stub!");
173     }
174 
readObject(java.io.ObjectInputStream s)175     private void readObject(java.io.ObjectInputStream s)
176             throws java.lang.ClassNotFoundException, java.io.IOException {
177         throw new RuntimeException("Stub!");
178     }
179 
writeObject(java.io.ObjectOutputStream s)180     private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException {
181         throw new RuntimeException("Stub!");
182     }
183 
184     @UnsupportedAppUsage(maxTargetSdk = VersionCodes.P, trackingBug = 78686891)
isNumeric(java.lang.String address)185     public static boolean isNumeric(java.lang.String address) {
186         throw new RuntimeException("Stub!");
187     }
188 
parseNumericAddressNoThrow(java.lang.String address)189     static java.net.InetAddress parseNumericAddressNoThrow(java.lang.String address) {
190         throw new RuntimeException("Stub!");
191     }
192 
disallowDeprecatedFormats( java.lang.String address, java.net.InetAddress inetAddress)193     static java.net.InetAddress disallowDeprecatedFormats(
194             java.lang.String address, java.net.InetAddress inetAddress) {
195         throw new RuntimeException("Stub!");
196     }
197 
198     /**
199      * @deprecated Use {@code android.net.InetAddresses.parseNumericAddress(String)} instead.
200      */
201     @UnsupportedAppUsage(maxTargetSdk = VersionCodes.P, trackingBug = 78686891)
parseNumericAddress(java.lang.String numericAddress)202     public static java.net.InetAddress parseNumericAddress(java.lang.String numericAddress) {
203         throw new RuntimeException("Stub!");
204     }
205 
206     @UnsupportedAppUsage
clearDnsCache()207     public static void clearDnsCache() {
208         throw new RuntimeException("Stub!");
209     }
210 
getByNameOnNet(java.lang.String host, int netId)211     public static java.net.InetAddress getByNameOnNet(java.lang.String host, int netId)
212             throws java.net.UnknownHostException {
213         throw new RuntimeException("Stub!");
214     }
215 
216     @UnsupportedAppUsage
getAllByNameOnNet(java.lang.String host, int netId)217     public static java.net.InetAddress[] getAllByNameOnNet(java.lang.String host, int netId)
218             throws java.net.UnknownHostException {
219         throw new RuntimeException("Stub!");
220     }
221 
222     private static final java.lang.ClassLoader BOOT_CLASSLOADER;
223 
224     static {
225         BOOT_CLASSLOADER = null;
226     }
227 
228     static final int NETID_UNSET = 0; // 0x0
229 
230     private transient java.lang.String canonicalHostName;
231 
232     @UnsupportedAppUsage
233     transient java.net.InetAddress.InetAddressHolder holder;
234 
235     static final java.net.InetAddressImpl impl;
236 
237     static {
238         impl = null;
239     }
240 
241     private static final sun.net.spi.nameservice.NameService nameService;
242 
243     static {
244         nameService = null;
245     }
246 
247     private static final java.io.ObjectStreamField[] serialPersistentFields;
248 
249     static {
250         serialPersistentFields = new java.io.ObjectStreamField[0];
251     }
252 
253     private static final long serialVersionUID = 3286316764910316507L; // 0x2d9b57af9fe3ebdbL
254 
255     @SuppressWarnings({"unchecked", "deprecation", "all"})
256     static class InetAddressHolder {
257 
InetAddressHolder()258         InetAddressHolder() {
259             throw new RuntimeException("Stub!");
260         }
261 
InetAddressHolder(java.lang.String hostName, int address, int family)262         InetAddressHolder(java.lang.String hostName, int address, int family) {
263             throw new RuntimeException("Stub!");
264         }
265 
init(java.lang.String hostName, int family)266         void init(java.lang.String hostName, int family) {
267             throw new RuntimeException("Stub!");
268         }
269 
getHostName()270         java.lang.String getHostName() {
271             throw new RuntimeException("Stub!");
272         }
273 
getOriginalHostName()274         java.lang.String getOriginalHostName() {
275             throw new RuntimeException("Stub!");
276         }
277 
getAddress()278         int getAddress() {
279             throw new RuntimeException("Stub!");
280         }
281 
getFamily()282         int getFamily() {
283             throw new RuntimeException("Stub!");
284         }
285 
286         @UnsupportedAppUsage
287         int address;
288 
289         @UnsupportedAppUsage
290         int family;
291 
292         @UnsupportedAppUsage
293         java.lang.String hostName;
294 
295         @UnsupportedAppUsage
296         java.lang.String originalHostName;
297     }
298 }
299