Package ch.qos.logback.core.util
Class CloseUtil
java.lang.Object
ch.qos.logback.core.util.CloseUtil
Static utility method for 
Closeable objects.- Author:
- Carl Harris
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
CloseUtilpublic CloseUtil()
 
- 
- 
Method Details- 
closeQuietlyCloses a closeable while suppressing anyIOExceptionthat occurs.- Parameters:
- closeable- the socket to close
 
- 
closeQuietlyCloses a socket while suppressing anyIOExceptionthat occurs.- Parameters:
- socket- the socket to close
 
- 
closeQuietlyCloses a server socket while suppressing anyIOExceptionthat occurs.- Parameters:
- serverSocket- the socket to close
 
 
-