1 /*
2  * Copyright (C) 2014 The Android Open Source Project
3  * Copyright (c) 2000, 2013, 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 
31 @SuppressWarnings({"unchecked", "deprecation", "all"})
32 public final class Inet6Address extends java.net.InetAddress {
33 
34     @UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553)
Inet6Address()35     Inet6Address() {
36         throw new RuntimeException("Stub!");
37     }
38 
Inet6Address(java.lang.String hostName, byte[] addr, int scope_id)39     Inet6Address(java.lang.String hostName, byte[] addr, int scope_id) {
40         throw new RuntimeException("Stub!");
41     }
42 
Inet6Address(java.lang.String hostName, byte[] addr)43     Inet6Address(java.lang.String hostName, byte[] addr) {
44         throw new RuntimeException("Stub!");
45     }
46 
Inet6Address(java.lang.String hostName, byte[] addr, java.net.NetworkInterface nif)47     Inet6Address(java.lang.String hostName, byte[] addr, java.net.NetworkInterface nif)
48             throws java.net.UnknownHostException {
49         throw new RuntimeException("Stub!");
50     }
51 
Inet6Address(java.lang.String hostName, byte[] addr, java.lang.String ifname)52     Inet6Address(java.lang.String hostName, byte[] addr, java.lang.String ifname)
53             throws java.net.UnknownHostException {
54         throw new RuntimeException("Stub!");
55     }
56 
getByAddress( java.lang.String host, byte[] addr, java.net.NetworkInterface nif)57     public static java.net.Inet6Address getByAddress(
58             java.lang.String host, byte[] addr, java.net.NetworkInterface nif)
59             throws java.net.UnknownHostException {
60         throw new RuntimeException("Stub!");
61     }
62 
getByAddress( java.lang.String host, byte[] addr, int scope_id)63     public static java.net.Inet6Address getByAddress(
64             java.lang.String host, byte[] addr, int scope_id) throws java.net.UnknownHostException {
65         throw new RuntimeException("Stub!");
66     }
67 
initstr(java.lang.String hostName, byte[] addr, java.lang.String ifname)68     private void initstr(java.lang.String hostName, byte[] addr, java.lang.String ifname)
69             throws java.net.UnknownHostException {
70         throw new RuntimeException("Stub!");
71     }
72 
initif(java.lang.String hostName, byte[] addr, java.net.NetworkInterface nif)73     private void initif(java.lang.String hostName, byte[] addr, java.net.NetworkInterface nif)
74             throws java.net.UnknownHostException {
75         throw new RuntimeException("Stub!");
76     }
77 
isDifferentLocalAddressType(byte[] thisAddr, byte[] otherAddr)78     private static boolean isDifferentLocalAddressType(byte[] thisAddr, byte[] otherAddr) {
79         throw new RuntimeException("Stub!");
80     }
81 
deriveNumericScope(byte[] thisAddr, java.net.NetworkInterface ifc)82     private static int deriveNumericScope(byte[] thisAddr, java.net.NetworkInterface ifc)
83             throws java.net.UnknownHostException {
84         throw new RuntimeException("Stub!");
85     }
86 
deriveNumericScope(java.lang.String ifname)87     private int deriveNumericScope(java.lang.String ifname) throws java.net.UnknownHostException {
88         throw new RuntimeException("Stub!");
89     }
90 
readObject(java.io.ObjectInputStream s)91     private void readObject(java.io.ObjectInputStream s)
92             throws java.lang.ClassNotFoundException, java.io.IOException {
93         throw new RuntimeException("Stub!");
94     }
95 
writeObject(java.io.ObjectOutputStream s)96     private synchronized void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException {
97         throw new RuntimeException("Stub!");
98     }
99 
isMulticastAddress()100     public boolean isMulticastAddress() {
101         throw new RuntimeException("Stub!");
102     }
103 
isAnyLocalAddress()104     public boolean isAnyLocalAddress() {
105         throw new RuntimeException("Stub!");
106     }
107 
isLoopbackAddress()108     public boolean isLoopbackAddress() {
109         throw new RuntimeException("Stub!");
110     }
111 
isLinkLocalAddress()112     public boolean isLinkLocalAddress() {
113         throw new RuntimeException("Stub!");
114     }
115 
isLinkLocalAddress(byte[] ipaddress)116     static boolean isLinkLocalAddress(byte[] ipaddress) {
117         throw new RuntimeException("Stub!");
118     }
119 
isSiteLocalAddress()120     public boolean isSiteLocalAddress() {
121         throw new RuntimeException("Stub!");
122     }
123 
isSiteLocalAddress(byte[] ipaddress)124     static boolean isSiteLocalAddress(byte[] ipaddress) {
125         throw new RuntimeException("Stub!");
126     }
127 
isMCGlobal()128     public boolean isMCGlobal() {
129         throw new RuntimeException("Stub!");
130     }
131 
isMCNodeLocal()132     public boolean isMCNodeLocal() {
133         throw new RuntimeException("Stub!");
134     }
135 
isMCLinkLocal()136     public boolean isMCLinkLocal() {
137         throw new RuntimeException("Stub!");
138     }
139 
isMCSiteLocal()140     public boolean isMCSiteLocal() {
141         throw new RuntimeException("Stub!");
142     }
143 
isMCOrgLocal()144     public boolean isMCOrgLocal() {
145         throw new RuntimeException("Stub!");
146     }
147 
getAddress()148     public byte[] getAddress() {
149         throw new RuntimeException("Stub!");
150     }
151 
getScopeId()152     public int getScopeId() {
153         throw new RuntimeException("Stub!");
154     }
155 
getScopedInterface()156     public java.net.NetworkInterface getScopedInterface() {
157         throw new RuntimeException("Stub!");
158     }
159 
getHostAddress()160     public java.lang.String getHostAddress() {
161         throw new RuntimeException("Stub!");
162     }
163 
hashCode()164     public int hashCode() {
165         throw new RuntimeException("Stub!");
166     }
167 
equals(java.lang.Object obj)168     public boolean equals(java.lang.Object obj) {
169         throw new RuntimeException("Stub!");
170     }
171 
isIPv4CompatibleAddress()172     public boolean isIPv4CompatibleAddress() {
173         throw new RuntimeException("Stub!");
174     }
175 
numericToTextFormat(byte[] src)176     static java.lang.String numericToTextFormat(byte[] src) {
177         throw new RuntimeException("Stub!");
178     }
179 
180     @UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553)
181     public static final java.net.InetAddress ANY;
182 
183     static {
184         ANY = null;
185     }
186 
187     private static final long FIELDS_OFFSET;
188 
189     static {
190         FIELDS_OFFSET = 0;
191     }
192 
193     static final int INADDRSZ = 16; // 0x10
194 
195     private static final int INT16SZ = 2; // 0x2
196 
197     public static final java.net.InetAddress LOOPBACK;
198 
199     static {
200         LOOPBACK = null;
201     }
202 
203     private static final sun.misc.Unsafe UNSAFE;
204 
205     static {
206         UNSAFE = null;
207     }
208 
209     @UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553)
210     private final transient java.net.Inet6Address.Inet6AddressHolder holder6;
211 
212     {
213         holder6 = null;
214     }
215 
216     private static final java.io.ObjectStreamField[] serialPersistentFields;
217 
218     static {
219         serialPersistentFields = new java.io.ObjectStreamField[0];
220     }
221 
222     private static final long serialVersionUID = 6880410070516793377L; // 0x5f7c2081522c8021L
223 
224     @SuppressWarnings({"unchecked", "deprecation", "all"})
225     private class Inet6AddressHolder {
226 
Inet6AddressHolder()227         private Inet6AddressHolder() {
228             throw new RuntimeException("Stub!");
229         }
230 
Inet6AddressHolder( byte[] ipaddress, int scope_id, boolean scope_id_set, java.net.NetworkInterface ifname, boolean scope_ifname_set)231         private Inet6AddressHolder(
232                 byte[] ipaddress,
233                 int scope_id,
234                 boolean scope_id_set,
235                 java.net.NetworkInterface ifname,
236                 boolean scope_ifname_set) {
237             throw new RuntimeException("Stub!");
238         }
239 
setAddr(byte[] addr)240         void setAddr(byte[] addr) {
241             throw new RuntimeException("Stub!");
242         }
243 
init(byte[] addr, int scope_id)244         void init(byte[] addr, int scope_id) {
245             throw new RuntimeException("Stub!");
246         }
247 
init(byte[] addr, java.net.NetworkInterface nif)248         void init(byte[] addr, java.net.NetworkInterface nif) throws java.net.UnknownHostException {
249             throw new RuntimeException("Stub!");
250         }
251 
equals(java.lang.Object o)252         public boolean equals(java.lang.Object o) {
253             throw new RuntimeException("Stub!");
254         }
255 
hashCode()256         public int hashCode() {
257             throw new RuntimeException("Stub!");
258         }
259 
isIPv4CompatibleAddress()260         boolean isIPv4CompatibleAddress() {
261             throw new RuntimeException("Stub!");
262         }
263 
isMulticastAddress()264         boolean isMulticastAddress() {
265             throw new RuntimeException("Stub!");
266         }
267 
isAnyLocalAddress()268         boolean isAnyLocalAddress() {
269             throw new RuntimeException("Stub!");
270         }
271 
isLoopbackAddress()272         boolean isLoopbackAddress() {
273             throw new RuntimeException("Stub!");
274         }
275 
isLinkLocalAddress()276         boolean isLinkLocalAddress() {
277             throw new RuntimeException("Stub!");
278         }
279 
isSiteLocalAddress()280         boolean isSiteLocalAddress() {
281             throw new RuntimeException("Stub!");
282         }
283 
isMCGlobal()284         boolean isMCGlobal() {
285             throw new RuntimeException("Stub!");
286         }
287 
isMCNodeLocal()288         boolean isMCNodeLocal() {
289             throw new RuntimeException("Stub!");
290         }
291 
isMCLinkLocal()292         boolean isMCLinkLocal() {
293             throw new RuntimeException("Stub!");
294         }
295 
isMCSiteLocal()296         boolean isMCSiteLocal() {
297             throw new RuntimeException("Stub!");
298         }
299 
isMCOrgLocal()300         boolean isMCOrgLocal() {
301             throw new RuntimeException("Stub!");
302         }
303 
304         @UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553)
305         byte[] ipaddress;
306 
307         @UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553)
308         int scope_id;
309 
310         @UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553)
311         boolean scope_id_set;
312 
313         @UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553)
314         java.net.NetworkInterface scope_ifname;
315 
316         boolean scope_ifname_set;
317     }
318 }
319