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