Constructor and Description |
---|
CloseUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
closeQuietly(Closeable closeable)
Closes a closeable while suppressing any
IOException that occurs. |
static void |
closeQuietly(ServerSocket serverSocket)
Closes a server socket while suppressing any
IOException that
occurs. |
static void |
closeQuietly(Socket socket)
Closes a socket while suppressing any
IOException that occurs. |
public static void closeQuietly(Closeable closeable)
IOException
that occurs.closeable
- the socket to closepublic static void closeQuietly(Socket socket)
IOException
that occurs.socket
- the socket to closepublic static void closeQuietly(ServerSocket serverSocket)
IOException
that
occurs.serverSocket
- the socket to closeCopyright © 2005–2021 QOS.ch. All rights reserved.