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