KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > net > SocketImplFactory


1 /*
2  * @(#)SocketImplFactory.java 1.18 03/12/19
3  *
4  * Copyright 2004 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 socket implementations. It
12  * is used by the classes <code>Socket</code> and
13  * <code>ServerSocket</code> to create actual socket
14  * implementations.
15  *
16  * @author Arthur van Hoff
17  * @version 1.18, 12/19/03
18  * @see java.net.Socket
19  * @see java.net.ServerSocket
20  * @since JDK1.0
21  */

22 public
23 interface SocketImplFactory {
24     /**
25      * Creates a new <code>SocketImpl</code> instance.
26      *
27      * @return a new instance of <code>SocketImpl</code>.
28      * @see java.net.SocketImpl
29      */

30     SocketImpl JavaDoc createSocketImpl();
31 }
32
Popular Tags