|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.qos.logback.core.util.CloseUtil
public class CloseUtil
Static utility method for Closeable
objects.
Constructor Summary | |
---|---|
CloseUtil()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CloseUtil()
Method Detail |
---|
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 close
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |