SocketImplFactory interface in java

java.net.SocketImplFactory

This interface defines a factory for socket implementations. It is used by the classes Socket and ServerSocket to create actual socket implementations.

Approach

Java

public interface SocketImplFactory {
   
    SocketImpl createSocketImpl();
}


Methods

1. createSocketImpl()

SocketImpl java.net.SocketImplFactory.createSocketImpl()

Creates a new SocketImpl instance.

Returns: a new instance of SocketImpl.

No comments:

Post a Comment