| Constructor and Description |
|---|
CloseUtil()
|
| Modifier and Type | Method and Description |
|---|---|
static void |
closeQuietly(Closeable
Closes a closeable while suppressing any
IOException that occurs.
|
static void |
closeQuietly(ServerSocket
Closes a server socket while suppressing any
IOException that occurs.
|
static void |
closeQuietly(Socket
Closes a socket while suppressing any
IOException that occurs.
|
public static void closeQuietly(Closeablecloseable)
IOException that occurs.
closeable - the socket to close
public static void closeQuietly(Socketsocket)
IOException that occurs.
socket - the socket to close
public static void closeQuietly(ServerSocketserverSocket)
IOException that occurs.
serverSocket - the socket to close