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 class InetSocketAddress extends java.net.SocketAddress {
33 
InetSocketAddress()34     public InetSocketAddress() {
35         throw new RuntimeException("Stub!");
36     }
37 
InetSocketAddress(int port)38     public InetSocketAddress(int port) {
39         throw new RuntimeException("Stub!");
40     }
41 
InetSocketAddress(java.net.InetAddress addr, int port)42     public InetSocketAddress(java.net.InetAddress addr, int port) {
43         throw new RuntimeException("Stub!");
44     }
45 
InetSocketAddress(java.lang.String hostname, int port)46     public InetSocketAddress(java.lang.String hostname, int port) {
47         throw new RuntimeException("Stub!");
48     }
49 
InetSocketAddress(int port, java.lang.String hostname)50     private InetSocketAddress(int port, java.lang.String hostname) {
51         throw new RuntimeException("Stub!");
52     }
53 
checkPort(int port)54     private static int checkPort(int port) {
55         throw new RuntimeException("Stub!");
56     }
57 
checkHost(java.lang.String hostname)58     private static java.lang.String checkHost(java.lang.String hostname) {
59         throw new RuntimeException("Stub!");
60     }
61 
createUnresolved(java.lang.String host, int port)62     public static java.net.InetSocketAddress createUnresolved(java.lang.String host, int port) {
63         throw new RuntimeException("Stub!");
64     }
65 
writeObject(java.io.ObjectOutputStream out)66     private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
67         throw new RuntimeException("Stub!");
68     }
69 
readObject(java.io.ObjectInputStream in)70     private void readObject(java.io.ObjectInputStream in)
71             throws java.lang.ClassNotFoundException, java.io.IOException {
72         throw new RuntimeException("Stub!");
73     }
74 
readObjectNoData()75     private void readObjectNoData() throws java.io.ObjectStreamException {
76         throw new RuntimeException("Stub!");
77     }
78 
getPort()79     public final int getPort() {
80         throw new RuntimeException("Stub!");
81     }
82 
getAddress()83     public final java.net.InetAddress getAddress() {
84         throw new RuntimeException("Stub!");
85     }
86 
getHostName()87     public final java.lang.String getHostName() {
88         throw new RuntimeException("Stub!");
89     }
90 
getHostString()91     public final java.lang.String getHostString() {
92         throw new RuntimeException("Stub!");
93     }
94 
isUnresolved()95     public final boolean isUnresolved() {
96         throw new RuntimeException("Stub!");
97     }
98 
toString()99     public java.lang.String toString() {
100         throw new RuntimeException("Stub!");
101     }
102 
equals(java.lang.Object obj)103     public final boolean equals(java.lang.Object obj) {
104         throw new RuntimeException("Stub!");
105     }
106 
hashCode()107     public final int hashCode() {
108         throw new RuntimeException("Stub!");
109     }
110 
111     private static final long FIELDS_OFFSET;
112 
113     static {
114         FIELDS_OFFSET = 0;
115     }
116 
117     private static final sun.misc.Unsafe UNSAFE;
118 
119     static {
120         UNSAFE = null;
121     }
122 
123     @UnsupportedAppUsage
124     private final transient java.net.InetSocketAddress.InetSocketAddressHolder holder;
125 
126     {
127         holder = null;
128     }
129 
130     private static final java.io.ObjectStreamField[] serialPersistentFields;
131 
132     static {
133         serialPersistentFields = new java.io.ObjectStreamField[0];
134     }
135 
136     private static final long serialVersionUID = 5076001401234631237L; // 0x467194616ff9aa45L
137 
138     @SuppressWarnings({"unchecked", "deprecation", "all"})
139     private static class InetSocketAddressHolder {
140 
InetSocketAddressHolder( java.lang.String hostname, java.net.InetAddress addr, int port)141         private InetSocketAddressHolder(
142                 java.lang.String hostname, java.net.InetAddress addr, int port) {
143             throw new RuntimeException("Stub!");
144         }
145 
getPort()146         private int getPort() {
147             throw new RuntimeException("Stub!");
148         }
149 
getAddress()150         private java.net.InetAddress getAddress() {
151             throw new RuntimeException("Stub!");
152         }
153 
getHostName()154         private java.lang.String getHostName() {
155             throw new RuntimeException("Stub!");
156         }
157 
getHostString()158         private java.lang.String getHostString() {
159             throw new RuntimeException("Stub!");
160         }
161 
isUnresolved()162         private boolean isUnresolved() {
163             throw new RuntimeException("Stub!");
164         }
165 
toString()166         public java.lang.String toString() {
167             throw new RuntimeException("Stub!");
168         }
169 
equals(java.lang.Object obj)170         public final boolean equals(java.lang.Object obj) {
171             throw new RuntimeException("Stub!");
172         }
173 
hashCode()174         public final int hashCode() {
175             throw new RuntimeException("Stub!");
176         }
177 
178         private java.net.InetAddress addr;
179 
180         private java.lang.String hostname;
181 
182         private int port;
183     }
184 }
185