|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dcm4che2.util.CloseUtils
public final class CloseUtils
Constructor Summary | |
---|---|
CloseUtils()
|
Method Summary | |
---|---|
static void |
safeClose(java.io.Closeable object)
Safely close, absorbing exceptions and handling null
graciously. |
static void |
safeClose(javax.imageio.stream.ImageInputStream is)
Safely close an ImageInputStream stream, absorbing exceptions and handling null graciously. |
static void |
safeClose(java.net.ServerSocket socket)
Safely close a server socket, absorbing exceptions and handling null graciously. |
static void |
safeClose(java.net.Socket socket)
Safely close a socket, absorbing exceptions and handling null graciously. |
static void |
safeClose(java.sql.Statement statement)
Safely close a JDBC Statement, absorbing exceptions and handling null graciously. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CloseUtils()
Method Detail |
---|
public static void safeClose(java.io.Closeable object)
null
graciously.
object
- object to close.public static void safeClose(java.net.Socket socket)
null
graciously.
socket
- object to close.public static void safeClose(java.net.ServerSocket socket)
null
graciously.
socket
- object to close.public static void safeClose(javax.imageio.stream.ImageInputStream is)
null
graciously.
is
- to close.public static void safeClose(java.sql.Statement statement)
null
graciously.
statement
- to close.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |