public interface SocketFactory
限定符和类型 | 方法和说明 |
---|---|
java.net.Socket |
createSocket(java.lang.String host,
int port) |
java.io.InputStream |
getInputStream(java.net.Socket socket) |
java.io.OutputStream |
getOutputStream(java.net.Socket socket) |
java.net.Socket createSocket(java.lang.String host, int port) throws java.io.IOException, java.net.UnknownHostException
java.io.IOException
java.net.UnknownHostException
java.io.InputStream getInputStream(java.net.Socket socket) throws java.io.IOException
java.io.IOException
java.io.OutputStream getOutputStream(java.net.Socket socket) throws java.io.IOException
java.io.IOException