public class Safe
extends java.lang.Object
| Constructor and Description |
|---|
Safe() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Exception |
close(java.io.Closeable closeable)
Close the closeable and catch any exception thrown.
|
static java.lang.Exception |
close(java.sql.Connection connection)
Close the connection and catch any exception thrown.
|
static java.lang.Exception |
close(javax.naming.Context context)
Close the context and catch any exception thrown.
|
static java.lang.Exception |
close(java.sql.ResultSet rs)
Close the result set and catch any exception thrown.
|
static java.lang.Exception |
close(java.net.Socket socket)
Close the socket and catch any exception thrown.
|
static java.lang.Exception |
close(java.sql.Statement statement)
Close the statement and catch any exception thrown.
|
static boolean |
equals(java.lang.Object o1,
java.lang.Object o2) |
static java.lang.Exception |
flush(java.io.Flushable flushable)
Flush the flushable and catch any exception thrown.
|
static boolean |
notEquals(java.lang.Object o1,
java.lang.Object o2) |
static <T extends java.lang.Throwable> |
rethrow(java.lang.Class<T> throwableClass,
java.lang.Throwable cause) |
public static java.lang.Exception close(java.net.Socket socket)
socket - the socket to closeclose operationpublic static java.lang.Exception close(java.io.Closeable closeable)
closeable - the closeable to closeclose operationpublic static java.lang.Exception close(java.sql.Connection connection)
connection - the socket to closeclose operationpublic static java.lang.Exception close(java.sql.Statement statement)
statement - the statement to closeclose operationpublic static java.lang.Exception close(java.sql.ResultSet rs)
rs - the result set to closeclose operationpublic static java.lang.Exception close(javax.naming.Context context)
context - the context to closeclose operationpublic static <T extends java.lang.Throwable> void rethrow(java.lang.Class<T> throwableClass,
java.lang.Throwable cause)
throws T extends java.lang.Throwable
T extends java.lang.Throwablepublic static boolean equals(java.lang.Object o1,
java.lang.Object o2)
public static boolean notEquals(java.lang.Object o1,
java.lang.Object o2)
public static java.lang.Exception flush(java.io.Flushable flushable)
flushable - the flushable to flushflush operationCopyright © 2014 eXo Platform SAS. All Rights Reserved.