KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > net > DatagramSocketImplFactory


1 /*
2  * @(#)DatagramSocketImplFactory.java 1.10 05/11/17
3  *
4  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package java.net;
9
10 /**
11  * This interface defines a factory for datagram socket implementations. It
12  * is used by the classes <code>DatagramSocket</code> to create actual socket
13  * implementations.
14  *
15  * @author Yingxian Wang
16  * @version %I %E
17  * @see java.net.DatagramSocket
18  * @since 1.3
19  */

20 public
21 interface DatagramSocketImplFactory {
22     /**
23      * Creates a new <code>DatagramSocketImpl</code> instance.
24      *
25      * @return a new instance of <code>DatagramSocketImpl</code>.
26      * @see java.net.DatagramSocketImpl
27      */

28     DatagramSocketImpl JavaDoc createDatagramSocketImpl();
29 }
30
Popular Tags