1 7 8 15 16 package javax.net; 17 18 import java.net.*; 19 20 import java.io.IOException; 21 22 59 public abstract class SocketFactory 60 { 61 62 65 protected SocketFactory() { } 66 67 72 public static SocketFactory getDefault() { 73 return null; 74 } 75 76 85 public Socket createSocket() throws IOException { 86 return null; 87 } 88 89 101 public abstract Socket createSocket(String host, int port) 102 throws IOException, UnknownHostException; 103 104 120 public abstract Socket createSocket(String host, int port, InetAddress 121 localHost, int localPort) throws IOException, UnknownHostException; 122 123 134 public abstract Socket createSocket(InetAddress host, int port) 135 throws IOException; 136 137 152 public abstract Socket createSocket(InetAddress address, int port, 153 InetAddress localAddress, int localPort) throws IOException; 154 } 155 | Popular Tags |