forked from yuhailei1992/Java7SourceCode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSocketImplFactory.java
More file actions
48 lines (46 loc) · 793 Bytes
/
SocketImplFactory.java
File metadata and controls
48 lines (46 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
* Copyright (c) 1995, 1999, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package java.net;
/**
* This interface defines a factory for socket implementations. It
* is used by the classes <code>Socket</code> and
* <code>ServerSocket</code> to create actual socket
* implementations.
*
* @author Arthur van Hoff
* @see java.net.Socket
* @see java.net.ServerSocket
* @since JDK1.0
*/
public
interface SocketImplFactory {
/**
* Creates a new <code>SocketImpl</code> instance.
*
* @return a new instance of <code>SocketImpl</code>.
* @see java.net.SocketImpl
*/
SocketImpl createSocketImpl();
}