public class Sockets
extends java.lang.Object
Constructor and Description |
---|
Sockets() |
Modifier and Type | Method and Description |
---|---|
static java.io.Closeable |
asCloseable(java.net.Socket socket)
Java 7 and up have Socket implemented as Closeable, whereas Java6 did not have this inheritance.
|
public static java.io.Closeable asCloseable(java.net.Socket socket)
socket
- The socket to wrap as Closeable