|
Carrot2 v3.6.0-SNAPSHOT
API Documentation |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.carrot2.util.CloseableUtils
public final class CloseableUtils
Static methods for closing various objects (including implementations of Closeable).
| Method Summary | |
|---|---|
static void |
close(Closeable... closeables)
Close all Closeable, ignoring exceptions. |
static void |
close(Closeable conn)
Close a Closeable, ignoring the exception if any. |
static void |
close(Connection... connections)
Close all Connections, ignoring exceptions. |
static void |
close(Connection conn)
Close a Connection, ignoring the exception if any. |
static void |
close(Socket... sockets)
Close all Sockets, ignoring exceptions. |
static void |
close(Statement... statements)
Close all Statements, ignoring exceptions. |
static void |
close(Statement conn)
Close a Statement, ignoring the exception if any. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void close(Closeable conn)
Closeable, ignoring the exception if any.
public static void close(Closeable... closeables)
Closeable, ignoring exceptions.
public static void close(Connection conn)
Connection, ignoring the exception if any.
public static void close(Connection... connections)
Connections, ignoring exceptions.
public static void close(Statement conn)
Statement, ignoring the exception if any.
public static void close(Statement... statements)
Statements, ignoring exceptions.
public static void close(Socket... sockets)
Sockets, ignoring exceptions.
|
Please refer to project documentation at
http://project.carrot2.org |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||