DatagramSocketImplFactory interface in java

java.net.DatagramSocketImplFactory

This interface defines a factory for datagram socket implementations. It is used by the classes DatagramSocket to create actual socket implementations.

Declaration

public interface DatagramSocketImplFactory {

    DatagramSocketImpl createDatagramSocketImpl();
}

Methods

1. createDatagramSocketImpl()

DatagramSocketImpl java.net.DatagramSocketImplFactory.createDatagramSocketImpl()

This method creates a new DatagramSocketImpl instance.

Parameters: NA

Returns: a new instance of DatagramSocketImpl.

Exceptions: NA

No comments:

Post a Comment