1 /*
2  * Copyright (C) 2014 The Android Open Source Project
3  * Copyright (c) 1995, 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 
28 package java.net;
29 
30 import java.nio.channels.SocketChannel;
31 import java.io.IOException;
32 import java.io.InputStream;
33 import java.io.OutputStream;
34 
35 @SuppressWarnings({"unchecked", "deprecation", "all"})
36 public class Socket implements java.io.Closeable {
37 
Socket()38 public Socket() { throw new RuntimeException("Stub!"); }
39 
Socket(java.net.Proxy proxy)40 public Socket(java.net.Proxy proxy) { throw new RuntimeException("Stub!"); }
41 
Socket(java.net.SocketImpl impl)42 protected Socket(java.net.SocketImpl impl) throws java.net.SocketException { throw new RuntimeException("Stub!"); }
43 
Socket(java.lang.String host, int port)44 public Socket(java.lang.String host, int port) throws java.io.IOException, java.net.UnknownHostException { throw new RuntimeException("Stub!"); }
45 
Socket(java.net.InetAddress address, int port)46 public Socket(java.net.InetAddress address, int port) throws java.io.IOException { throw new RuntimeException("Stub!"); }
47 
Socket(java.lang.String host, int port, java.net.InetAddress localAddr, int localPort)48 public Socket(java.lang.String host, int port, java.net.InetAddress localAddr, int localPort) throws java.io.IOException { throw new RuntimeException("Stub!"); }
49 
Socket(java.net.InetAddress address, int port, java.net.InetAddress localAddr, int localPort)50 public Socket(java.net.InetAddress address, int port, java.net.InetAddress localAddr, int localPort) throws java.io.IOException { throw new RuntimeException("Stub!"); }
51 
52 @Deprecated
Socket(java.lang.String host, int port, boolean stream)53 public Socket(java.lang.String host, int port, boolean stream) throws java.io.IOException { throw new RuntimeException("Stub!"); }
54 
55 @Deprecated
Socket(java.net.InetAddress host, int port, boolean stream)56 public Socket(java.net.InetAddress host, int port, boolean stream) throws java.io.IOException { throw new RuntimeException("Stub!"); }
57 
connect(java.net.SocketAddress endpoint)58 public void connect(java.net.SocketAddress endpoint) throws java.io.IOException { throw new RuntimeException("Stub!"); }
59 
connect(java.net.SocketAddress endpoint, int timeout)60 public void connect(java.net.SocketAddress endpoint, int timeout) throws java.io.IOException { throw new RuntimeException("Stub!"); }
61 
bind(java.net.SocketAddress bindpoint)62 public void bind(java.net.SocketAddress bindpoint) throws java.io.IOException { throw new RuntimeException("Stub!"); }
63 
getInetAddress()64 public java.net.InetAddress getInetAddress() { throw new RuntimeException("Stub!"); }
65 
getLocalAddress()66 public java.net.InetAddress getLocalAddress() { throw new RuntimeException("Stub!"); }
67 
getPort()68 public int getPort() { throw new RuntimeException("Stub!"); }
69 
getLocalPort()70 public int getLocalPort() { throw new RuntimeException("Stub!"); }
71 
getRemoteSocketAddress()72 public java.net.SocketAddress getRemoteSocketAddress() { throw new RuntimeException("Stub!"); }
73 
getLocalSocketAddress()74 public java.net.SocketAddress getLocalSocketAddress() { throw new RuntimeException("Stub!"); }
75 
getChannel()76 public java.nio.channels.SocketChannel getChannel() { throw new RuntimeException("Stub!"); }
77 
getInputStream()78 public java.io.InputStream getInputStream() throws java.io.IOException { throw new RuntimeException("Stub!"); }
79 
getOutputStream()80 public java.io.OutputStream getOutputStream() throws java.io.IOException { throw new RuntimeException("Stub!"); }
81 
setTcpNoDelay(boolean on)82 public void setTcpNoDelay(boolean on) throws java.net.SocketException { throw new RuntimeException("Stub!"); }
83 
getTcpNoDelay()84 public boolean getTcpNoDelay() throws java.net.SocketException { throw new RuntimeException("Stub!"); }
85 
setSoLinger(boolean on, int linger)86 public void setSoLinger(boolean on, int linger) throws java.net.SocketException { throw new RuntimeException("Stub!"); }
87 
getSoLinger()88 public int getSoLinger() throws java.net.SocketException { throw new RuntimeException("Stub!"); }
89 
sendUrgentData(int data)90 public void sendUrgentData(int data) throws java.io.IOException { throw new RuntimeException("Stub!"); }
91 
setOOBInline(boolean on)92 public void setOOBInline(boolean on) throws java.net.SocketException { throw new RuntimeException("Stub!"); }
93 
getOOBInline()94 public boolean getOOBInline() throws java.net.SocketException { throw new RuntimeException("Stub!"); }
95 
setSoTimeout(int timeout)96 public synchronized void setSoTimeout(int timeout) throws java.net.SocketException { throw new RuntimeException("Stub!"); }
97 
getSoTimeout()98 public synchronized int getSoTimeout() throws java.net.SocketException { throw new RuntimeException("Stub!"); }
99 
setSendBufferSize(int size)100 public synchronized void setSendBufferSize(int size) throws java.net.SocketException { throw new RuntimeException("Stub!"); }
101 
getSendBufferSize()102 public synchronized int getSendBufferSize() throws java.net.SocketException { throw new RuntimeException("Stub!"); }
103 
setReceiveBufferSize(int size)104 public synchronized void setReceiveBufferSize(int size) throws java.net.SocketException { throw new RuntimeException("Stub!"); }
105 
getReceiveBufferSize()106 public synchronized int getReceiveBufferSize() throws java.net.SocketException { throw new RuntimeException("Stub!"); }
107 
setKeepAlive(boolean on)108 public void setKeepAlive(boolean on) throws java.net.SocketException { throw new RuntimeException("Stub!"); }
109 
getKeepAlive()110 public boolean getKeepAlive() throws java.net.SocketException { throw new RuntimeException("Stub!"); }
111 
setTrafficClass(int tc)112 public void setTrafficClass(int tc) throws java.net.SocketException { throw new RuntimeException("Stub!"); }
113 
getTrafficClass()114 public int getTrafficClass() throws java.net.SocketException { throw new RuntimeException("Stub!"); }
115 
setReuseAddress(boolean on)116 public void setReuseAddress(boolean on) throws java.net.SocketException { throw new RuntimeException("Stub!"); }
117 
getReuseAddress()118 public boolean getReuseAddress() throws java.net.SocketException { throw new RuntimeException("Stub!"); }
119 
close()120 public synchronized void close() throws java.io.IOException { throw new RuntimeException("Stub!"); }
121 
shutdownInput()122 public void shutdownInput() throws java.io.IOException { throw new RuntimeException("Stub!"); }
123 
shutdownOutput()124 public void shutdownOutput() throws java.io.IOException { throw new RuntimeException("Stub!"); }
125 
toString()126 public java.lang.String toString() { throw new RuntimeException("Stub!"); }
127 
isConnected()128 public boolean isConnected() { throw new RuntimeException("Stub!"); }
129 
isBound()130 public boolean isBound() { throw new RuntimeException("Stub!"); }
131 
isClosed()132 public boolean isClosed() { throw new RuntimeException("Stub!"); }
133 
isInputShutdown()134 public boolean isInputShutdown() { throw new RuntimeException("Stub!"); }
135 
isOutputShutdown()136 public boolean isOutputShutdown() { throw new RuntimeException("Stub!"); }
137 
setSocketImplFactory(java.net.SocketImplFactory fac)138 public static synchronized void setSocketImplFactory(java.net.SocketImplFactory fac) throws java.io.IOException { throw new RuntimeException("Stub!"); }
139 
setPerformancePreferences(int connectionTime, int latency, int bandwidth)140 public void setPerformancePreferences(int connectionTime, int latency, int bandwidth) { throw new RuntimeException("Stub!"); }
141 
142 @libcore.api.CorePlatformApi
143 @libcore.api.IntraCoreApi
getFileDescriptor$()144 public java.io.FileDescriptor getFileDescriptor$() { throw new RuntimeException("Stub!"); }
145 }
146 
147