public class StandardSocketFactory extends SocketFactory
构造器和说明 |
---|
StandardSocketFactory()
Default empty constructor (for use with the reflection API).
|
限定符和类型 | 方法和说明 |
---|---|
Socket |
createSocket() |
Socket |
createSocket(InetAddress addr,
int port) |
Socket |
createSocket(InetAddress addr,
int port,
InetAddress localHostAddr,
int localPort) |
Socket |
createSocket(String host,
int port) |
Socket |
createSocket(String host,
int port,
InetAddress localHostAddr,
int localPort) |
boolean |
equals(Object obj) |
int |
hashCode() |
getDefault
public StandardSocketFactory()
public Socket createSocket() throws IOException
createSocket
在类中 SocketFactory
IOException
public Socket createSocket(InetAddress addr, int port) throws IOException
createSocket
在类中 SocketFactory
IOException
public Socket createSocket(InetAddress addr, int port, InetAddress localHostAddr, int localPort) throws IOException
createSocket
在类中 SocketFactory
IOException
public Socket createSocket(String host, int port) throws IOException, UnknownHostException
createSocket
在类中 SocketFactory
IOException
UnknownHostException
public Socket createSocket(String host, int port, InetAddress localHostAddr, int localPort) throws IOException, UnknownHostException
createSocket
在类中 SocketFactory
IOException
UnknownHostException
Copyright © 2009 The Apache Software Foundation