|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crsh.util.Safe
public class Safe
| Constructor Summary | |
|---|---|
Safe()
|
|
| Method Summary | ||
|---|---|---|
static boolean |
close(Closeable closeable)
Close the closeable and catch any exception thrown. |
|
static boolean |
close(Connection connection)
Close the connection and catch any exception thrown. |
|
static boolean |
close(Context context)
Close the context and catch any exception thrown. |
|
static boolean |
close(ResultSet rs)
Close the result set and catch any exception thrown. |
|
static boolean |
close(Socket socket)
Close the socket and catch any exception thrown. |
|
static boolean |
close(Statement statement)
Close the statement and catch any exception thrown. |
|
static boolean |
equals(Object o1,
Object o2)
|
|
static boolean |
flush(Flushable flushable)
Flush the flushable and catch any exception thrown. |
|
static boolean |
notEquals(Object o1,
Object o2)
|
|
static
|
rethrow(Class<T> throwableClass,
Throwable cause)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Safe()
| Method Detail |
|---|
public static boolean close(Socket socket)
socket - the socket to close
public static boolean close(Closeable closeable)
closeable - the closeable to close
public static boolean close(Connection connection)
connection - the socket to close
public static boolean close(Statement statement)
statement - the statement to close
public static boolean close(ResultSet rs)
rs - the result set to close
public static boolean close(Context context)
context - the context to close
public static <T extends Throwable> void rethrow(Class<T> throwableClass,
Throwable cause)
throws T extends Throwable
T extends Throwable
public static boolean equals(Object o1,
Object o2)
public static boolean notEquals(Object o1,
Object o2)
public static boolean flush(Flushable flushable)
flushable - the flushable to flush
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||