java.lang.Object
ch.qos.logback.core.util.CloseUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
closeQuietly
(Closeable closeable) Closes a closeable while suppressing anyIOException
that occurs.static void
closeQuietly
(ServerSocket serverSocket) Closes a server socket while suppressing anyIOException
that occurs.static void
closeQuietly
(Socket socket) Closes a socket while suppressing anyIOException
that occurs.
-
Constructor Details
-
CloseUtil
public CloseUtil()
-
-
Method Details
-
closeQuietly
Closes a closeable while suppressing anyIOException
that occurs.- Parameters:
closeable
- the socket to close
-
closeQuietly
Closes a socket while suppressing anyIOException
that occurs.- Parameters:
socket
- the socket to close
-
closeQuietly
Closes a server socket while suppressing anyIOException
that occurs.- Parameters:
serverSocket
- the socket to close
-