public class IOUtils
extends java.lang.Object
构造器和说明 |
---|
IOUtils() |
限定符和类型 | 方法和说明 |
---|---|
static void |
closeQuietly(java.io.Closeable closeable)
Unconditionally close a
Closeable . |
static void |
closeQuietly(android.database.Cursor cursor)
Unconditionally close a
Cursor . |
public static void closeQuietly(java.io.Closeable closeable)
Unconditionally close a Closeable
.
Closeable.close()
, except any exceptions will be ignored. This is
typically used in finally blocks.closeable
- A Closeable
to close.public static void closeQuietly(android.database.Cursor cursor)
Unconditionally close a Cursor
.
Cursor.close()
, except any exceptions will be ignored. This is
typically used in finally blocks.cursor
- A Cursor
to close.