Socket.setSocketImplFactory
Class Overview | Class Members |
This Package |
All Packages
public static synchronized void setSocketImplFactory( SocketImplFactory fac ) throws IOException
Parameters
- fac
- the desired factory.
Description
Sets the client socket implementation factory for the
application. The factory can be specified only once.
When an application creates a new client socket, the socket
implementation factory's createSocketImpl method is
called to create the actual socket implementation.
Exceptions
IOException
if an I/O error occurs when setting the
socket factory.
Exceptions
SocketException
if the factory is already defined.
See Also
createSocketImpl