public class CloseUtil
extends java.lang.Object
Closeable
objects.Constructor and Description |
---|
CloseUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
closeQuietly(java.io.Closeable closeable)
Closes a closeable while suppressing any
IOException that occurs. |
static void |
closeQuietly(java.net.ServerSocket serverSocket)
Closes a server socket while suppressing any
IOException that
occurs. |
static void |
closeQuietly(java.net.Socket socket)
Closes a socket while suppressing any
IOException that occurs. |
public static void closeQuietly(java.io.Closeable closeable)
IOException
that occurs.closeable
- the socket to closepublic static void closeQuietly(java.net.Socket socket)
IOException
that occurs.socket
- the socket to closepublic static void closeQuietly(java.net.ServerSocket serverSocket)
IOException
that
occurs.serverSocket
- the socket to closeCopyright © 2010 - 2020 Adobe. All Rights Reserved