• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 1995, 2013, Oracle and/or its affiliates. All rights reserved.
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * This code is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU General Public License version 2 only, as
7  * published by the Free Software Foundation.  Oracle designates this
8  * particular file as subject to the "Classpath" exception as provided
9  * by Oracle in the LICENSE file that accompanied this code.
10  *
11  * This code is distributed in the hope that it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14  * version 2 for more details (a copy is included in the LICENSE file that
15  * accompanied this code).
16  *
17  * You should have received a copy of the GNU General Public License version
18  * 2 along with this work; if not, write to the Free Software Foundation,
19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20  *
21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22  * or visit www.oracle.com if you need additional information or have any
23  * questions.
24  */
25 
26 package java.net;
27 
28 import android.compat.annotation.UnsupportedAppUsage;
29 
30 @SuppressWarnings({"unchecked", "deprecation", "all"})
31 public class ServerSocket implements java.io.Closeable {
32 
ServerSocket(java.net.SocketImpl impl)33     ServerSocket(java.net.SocketImpl impl) {
34         throw new RuntimeException("Stub!");
35     }
36 
ServerSocket()37     public ServerSocket() throws java.io.IOException {
38         throw new RuntimeException("Stub!");
39     }
40 
ServerSocket(int port)41     public ServerSocket(int port) throws java.io.IOException {
42         throw new RuntimeException("Stub!");
43     }
44 
ServerSocket(int port, int backlog)45     public ServerSocket(int port, int backlog) throws java.io.IOException {
46         throw new RuntimeException("Stub!");
47     }
48 
ServerSocket(int port, int backlog, java.net.InetAddress bindAddr)49     public ServerSocket(int port, int backlog, java.net.InetAddress bindAddr)
50             throws java.io.IOException {
51         throw new RuntimeException("Stub!");
52     }
53 
getImpl()54     public java.net.SocketImpl getImpl() throws java.net.SocketException {
55         throw new RuntimeException("Stub!");
56     }
57 
checkOldImpl()58     private void checkOldImpl() {
59         throw new RuntimeException("Stub!");
60     }
61 
setImpl()62     private void setImpl() {
63         throw new RuntimeException("Stub!");
64     }
65 
createImpl()66     void createImpl() throws java.net.SocketException {
67         throw new RuntimeException("Stub!");
68     }
69 
bind(java.net.SocketAddress endpoint)70     public void bind(java.net.SocketAddress endpoint) throws java.io.IOException {
71         throw new RuntimeException("Stub!");
72     }
73 
bind(java.net.SocketAddress endpoint, int backlog)74     public void bind(java.net.SocketAddress endpoint, int backlog) throws java.io.IOException {
75         throw new RuntimeException("Stub!");
76     }
77 
getInetAddress()78     public java.net.InetAddress getInetAddress() {
79         throw new RuntimeException("Stub!");
80     }
81 
getLocalPort()82     public int getLocalPort() {
83         throw new RuntimeException("Stub!");
84     }
85 
getLocalSocketAddress()86     public java.net.SocketAddress getLocalSocketAddress() {
87         throw new RuntimeException("Stub!");
88     }
89 
accept()90     public java.net.Socket accept() throws java.io.IOException {
91         throw new RuntimeException("Stub!");
92     }
93 
implAccept(java.net.Socket s)94     protected final void implAccept(java.net.Socket s) throws java.io.IOException {
95         throw new RuntimeException("Stub!");
96     }
97 
close()98     public void close() throws java.io.IOException {
99         throw new RuntimeException("Stub!");
100     }
101 
getChannel()102     public java.nio.channels.ServerSocketChannel getChannel() {
103         throw new RuntimeException("Stub!");
104     }
105 
isBound()106     public boolean isBound() {
107         throw new RuntimeException("Stub!");
108     }
109 
isClosed()110     public boolean isClosed() {
111         throw new RuntimeException("Stub!");
112     }
113 
setSoTimeout(int timeout)114     public synchronized void setSoTimeout(int timeout) throws java.net.SocketException {
115         throw new RuntimeException("Stub!");
116     }
117 
getSoTimeout()118     public synchronized int getSoTimeout() throws java.io.IOException {
119         throw new RuntimeException("Stub!");
120     }
121 
setReuseAddress(boolean on)122     public void setReuseAddress(boolean on) throws java.net.SocketException {
123         throw new RuntimeException("Stub!");
124     }
125 
getReuseAddress()126     public boolean getReuseAddress() throws java.net.SocketException {
127         throw new RuntimeException("Stub!");
128     }
129 
toString()130     public java.lang.String toString() {
131         throw new RuntimeException("Stub!");
132     }
133 
setBound()134     void setBound() {
135         throw new RuntimeException("Stub!");
136     }
137 
setCreated()138     void setCreated() {
139         throw new RuntimeException("Stub!");
140     }
141 
setSocketFactory(java.net.SocketImplFactory fac)142     public static synchronized void setSocketFactory(java.net.SocketImplFactory fac)
143             throws java.io.IOException {
144         throw new RuntimeException("Stub!");
145     }
146 
setReceiveBufferSize(int size)147     public synchronized void setReceiveBufferSize(int size) throws java.net.SocketException {
148         throw new RuntimeException("Stub!");
149     }
150 
getReceiveBufferSize()151     public synchronized int getReceiveBufferSize() throws java.net.SocketException {
152         throw new RuntimeException("Stub!");
153     }
154 
setPerformancePreferences(int connectionTime, int latency, int bandwidth)155     public void setPerformancePreferences(int connectionTime, int latency, int bandwidth) {
156         throw new RuntimeException("Stub!");
157     }
158 
getFileDescriptor$()159     public java.io.FileDescriptor getFileDescriptor$() {
160         throw new RuntimeException("Stub!");
161     }
162 
163     private boolean bound = false;
164 
165     private java.lang.Object closeLock;
166 
167     private boolean closed = false;
168 
169     private boolean created = false;
170 
171     @UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553)
172     private static java.net.SocketImplFactory factory;
173 
174     private java.net.SocketImpl impl;
175 
176     private boolean oldImpl = false;
177 }
178