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
27 package java.net;
28
29 import java.nio.channels.ServerSocketChannel;
30 import java.io.IOException;
31
32 @SuppressWarnings({"unchecked", "deprecation", "all"})
33 public class ServerSocket implements java.io.Closeable {
34
ServerSocket()35 public ServerSocket() throws java.io.IOException { throw new RuntimeException("Stub!"); }
36
ServerSocket(int port)37 public ServerSocket(int port) throws java.io.IOException { throw new RuntimeException("Stub!"); }
38
ServerSocket(int port, int backlog)39 public ServerSocket(int port, int backlog) throws java.io.IOException { throw new RuntimeException("Stub!"); }
40
ServerSocket(int port, int backlog, java.net.InetAddress bindAddr)41 public ServerSocket(int port, int backlog, java.net.InetAddress bindAddr) throws java.io.IOException { throw new RuntimeException("Stub!"); }
42
bind(java.net.SocketAddress endpoint)43 public void bind(java.net.SocketAddress endpoint) throws java.io.IOException { throw new RuntimeException("Stub!"); }
44
bind(java.net.SocketAddress endpoint, int backlog)45 public void bind(java.net.SocketAddress endpoint, int backlog) throws java.io.IOException { throw new RuntimeException("Stub!"); }
46
getInetAddress()47 public java.net.InetAddress getInetAddress() { throw new RuntimeException("Stub!"); }
48
getLocalPort()49 public int getLocalPort() { throw new RuntimeException("Stub!"); }
50
getLocalSocketAddress()51 public java.net.SocketAddress getLocalSocketAddress() { throw new RuntimeException("Stub!"); }
52
accept()53 public java.net.Socket accept() throws java.io.IOException { throw new RuntimeException("Stub!"); }
54
55 @android.annotation.SystemApi(client = android.annotation.SystemApi.Client.MODULE_LIBRARIES)
56 @libcore.api.CorePlatformApi(status = libcore.api.CorePlatformApi.Status.STABLE)
getImpl()57 public SocketImpl getImpl() throws SocketException { throw new RuntimeException("Stub!"); }
58
implAccept(java.net.Socket s)59 protected final void implAccept(java.net.Socket s) throws java.io.IOException { throw new RuntimeException("Stub!"); }
60
close()61 public void close() throws java.io.IOException { throw new RuntimeException("Stub!"); }
62
getChannel()63 public java.nio.channels.ServerSocketChannel getChannel() { throw new RuntimeException("Stub!"); }
64
isBound()65 public boolean isBound() { throw new RuntimeException("Stub!"); }
66
isClosed()67 public boolean isClosed() { throw new RuntimeException("Stub!"); }
68
setSoTimeout(int timeout)69 public synchronized void setSoTimeout(int timeout) throws java.net.SocketException { throw new RuntimeException("Stub!"); }
70
getSoTimeout()71 public synchronized int getSoTimeout() throws java.io.IOException { throw new RuntimeException("Stub!"); }
72
setReuseAddress(boolean on)73 public void setReuseAddress(boolean on) throws java.net.SocketException { throw new RuntimeException("Stub!"); }
74
getReuseAddress()75 public boolean getReuseAddress() throws java.net.SocketException { throw new RuntimeException("Stub!"); }
76
toString()77 public java.lang.String toString() { throw new RuntimeException("Stub!"); }
78
setSocketFactory(java.net.SocketImplFactory fac)79 public static synchronized void setSocketFactory(java.net.SocketImplFactory fac) throws java.io.IOException { throw new RuntimeException("Stub!"); }
80
setReceiveBufferSize(int size)81 public synchronized void setReceiveBufferSize(int size) throws java.net.SocketException { throw new RuntimeException("Stub!"); }
82
getReceiveBufferSize()83 public synchronized int getReceiveBufferSize() throws java.net.SocketException { throw new RuntimeException("Stub!"); }
84
setPerformancePreferences(int connectionTime, int latency, int bandwidth)85 public void setPerformancePreferences(int connectionTime, int latency, int bandwidth) { throw new RuntimeException("Stub!"); }
86 }
87
88