1 /* 2 * Copyright (C) 2014 The Android Open Source Project 3 * Copyright (c) 2007, 2008, 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 @SuppressWarnings({"unchecked", "deprecation", "all"}) 30 class PlainSocketImpl extends java.net.AbstractPlainSocketImpl { 31 32 @android.compat.annotation.UnsupportedAppUsage PlainSocketImpl()33 PlainSocketImpl() { 34 throw new RuntimeException("Stub!"); 35 } 36 PlainSocketImpl(java.io.FileDescriptor fd)37 PlainSocketImpl(java.io.FileDescriptor fd) { 38 throw new RuntimeException("Stub!"); 39 } 40 setOption(java.net.SocketOption<T> name, T value)41 protected <T> void setOption(java.net.SocketOption<T> name, T value) 42 throws java.io.IOException { 43 throw new RuntimeException("Stub!"); 44 } 45 getOption(java.net.SocketOption<T> name)46 protected <T> T getOption(java.net.SocketOption<T> name) throws java.io.IOException { 47 throw new RuntimeException("Stub!"); 48 } 49 socketSetOption(int opt, java.lang.Object val)50 protected void socketSetOption(int opt, java.lang.Object val) throws java.net.SocketException { 51 throw new RuntimeException("Stub!"); 52 } 53 socketCreate(boolean isStream)54 void socketCreate(boolean isStream) throws java.io.IOException { 55 throw new RuntimeException("Stub!"); 56 } 57 socketConnect(java.net.InetAddress address, int port, int timeout)58 void socketConnect(java.net.InetAddress address, int port, int timeout) 59 throws java.io.IOException { 60 throw new RuntimeException("Stub!"); 61 } 62 socketBind(java.net.InetAddress address, int port)63 void socketBind(java.net.InetAddress address, int port) throws java.io.IOException { 64 throw new RuntimeException("Stub!"); 65 } 66 socketListen(int count)67 void socketListen(int count) throws java.io.IOException { 68 throw new RuntimeException("Stub!"); 69 } 70 socketAccept(java.net.SocketImpl s)71 void socketAccept(java.net.SocketImpl s) throws java.io.IOException { 72 throw new RuntimeException("Stub!"); 73 } 74 socketAvailable()75 int socketAvailable() throws java.io.IOException { 76 throw new RuntimeException("Stub!"); 77 } 78 socketClose0(boolean useDeferredClose)79 void socketClose0(boolean useDeferredClose) throws java.io.IOException { 80 throw new RuntimeException("Stub!"); 81 } 82 getMarkerFD()83 private java.io.FileDescriptor getMarkerFD() throws java.net.SocketException { 84 throw new RuntimeException("Stub!"); 85 } 86 socketShutdown(int howto)87 void socketShutdown(int howto) throws java.io.IOException { 88 throw new RuntimeException("Stub!"); 89 } 90 socketSetOption0(int cmd, java.lang.Object value)91 void socketSetOption0(int cmd, java.lang.Object value) throws java.net.SocketException { 92 throw new RuntimeException("Stub!"); 93 } 94 socketGetOption(int opt)95 java.lang.Object socketGetOption(int opt) throws java.net.SocketException { 96 throw new RuntimeException("Stub!"); 97 } 98 socketSendUrgentData(int data)99 void socketSendUrgentData(int data) throws java.io.IOException { 100 throw new RuntimeException("Stub!"); 101 } 102 } 103