• 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 android.compat.annotation.UnsupportedAppUsage;
30 import dalvik.annotation.compat.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,
185         publicAlternatives = "Use {@code android.net.InetAddresses#isNumericAddress} "
186         + "instead. There is a behavioural difference between the original method and its "
187         + "replacement.")
isNumeric(java.lang.String address)188     public static boolean isNumeric(java.lang.String address) {
189         throw new RuntimeException("Stub!");
190     }
191 
parseNumericAddressNoThrow(java.lang.String address)192     static java.net.InetAddress parseNumericAddressNoThrow(java.lang.String address) {
193         throw new RuntimeException("Stub!");
194     }
195 
disallowDeprecatedFormats( java.lang.String address, java.net.InetAddress inetAddress)196     static java.net.InetAddress disallowDeprecatedFormats(
197             java.lang.String address, java.net.InetAddress inetAddress) {
198         throw new RuntimeException("Stub!");
199     }
200 
201     /**
202      * @deprecated Use {@code android.net.InetAddresses.parseNumericAddress(String)} instead.
203      */
204     @UnsupportedAppUsage(maxTargetSdk = VersionCodes.P, trackingBug = 78686891,
205         publicAlternatives = "Use {@code android.net.InetAddresses#parseNumericAddress} "
206         + "instead. There is a behavioural difference between the original method and its "
207         + "replacement.")
parseNumericAddress(java.lang.String numericAddress)208     public static java.net.InetAddress parseNumericAddress(java.lang.String numericAddress) {
209         throw new RuntimeException("Stub!");
210     }
211 
212     @UnsupportedAppUsage
clearDnsCache()213     public static void clearDnsCache() {
214         throw new RuntimeException("Stub!");
215     }
216 
getByNameOnNet(java.lang.String host, int netId)217     public static java.net.InetAddress getByNameOnNet(java.lang.String host, int netId)
218             throws java.net.UnknownHostException {
219         throw new RuntimeException("Stub!");
220     }
221 
222     @UnsupportedAppUsage
getAllByNameOnNet(java.lang.String host, int netId)223     public static java.net.InetAddress[] getAllByNameOnNet(java.lang.String host, int netId)
224             throws java.net.UnknownHostException {
225         throw new RuntimeException("Stub!");
226     }
227 
228     private static final java.lang.ClassLoader BOOT_CLASSLOADER;
229 
230     static {
231         BOOT_CLASSLOADER = null;
232     }
233 
234     static final int NETID_UNSET = 0; // 0x0
235 
236     private transient java.lang.String canonicalHostName;
237 
238     @UnsupportedAppUsage
239     transient java.net.InetAddress.InetAddressHolder holder;
240 
241     static final java.net.InetAddressImpl impl;
242 
243     static {
244         impl = null;
245     }
246 
247     private static final sun.net.spi.nameservice.NameService nameService;
248 
249     static {
250         nameService = null;
251     }
252 
253     private static final java.io.ObjectStreamField[] serialPersistentFields;
254 
255     static {
256         serialPersistentFields = new java.io.ObjectStreamField[0];
257     }
258 
259     private static final long serialVersionUID = 3286316764910316507L; // 0x2d9b57af9fe3ebdbL
260 
261     @SuppressWarnings({"unchecked", "deprecation", "all"})
262     static class InetAddressHolder {
263 
InetAddressHolder()264         InetAddressHolder() {
265             throw new RuntimeException("Stub!");
266         }
267 
InetAddressHolder(java.lang.String hostName, int address, int family)268         InetAddressHolder(java.lang.String hostName, int address, int family) {
269             throw new RuntimeException("Stub!");
270         }
271 
init(java.lang.String hostName, int family)272         void init(java.lang.String hostName, int family) {
273             throw new RuntimeException("Stub!");
274         }
275 
getHostName()276         java.lang.String getHostName() {
277             throw new RuntimeException("Stub!");
278         }
279 
getOriginalHostName()280         java.lang.String getOriginalHostName() {
281             throw new RuntimeException("Stub!");
282         }
283 
getAddress()284         int getAddress() {
285             throw new RuntimeException("Stub!");
286         }
287 
getFamily()288         int getFamily() {
289             throw new RuntimeException("Stub!");
290         }
291 
292         @UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553)
293         int address;
294 
295         @UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553)
296         int family;
297 
298         @UnsupportedAppUsage
299         java.lang.String hostName;
300 
301         @UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553)
302         java.lang.String originalHostName;
303     }
304 }
305