| Modifier and Type | Class and Description |
|---|---|
static interface |
IOUtils.IoExceptionThrowingOperation |
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.logging.Logger |
log |
| Constructor and Description |
|---|
IOUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
close(java.io.Closeable closeable) |
static <T> T |
deserializeObject(byte[] objectBytes) |
static boolean |
doSafeIo(IOUtils.IoExceptionThrowingOperation operation)
Executes the given
IOUtils.IoExceptionThrowingOperation, handling any IOExceptions thrown
during normal IO processing. |
static byte[] |
serializeObject(java.io.Serializable obj) |
public static boolean close(java.io.Closeable closeable)
public static boolean doSafeIo(IOUtils.IoExceptionThrowingOperation operation)
IOUtils.IoExceptionThrowingOperation, handling any IOExceptions thrown
during normal IO processing.operation - IOUtils.IoExceptionThrowingOperation to execute.IOException.IOExceptionpublic static <T> T deserializeObject(byte[] objectBytes)
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic static byte[] serializeObject(java.io.Serializable obj)
throws java.io.IOException
java.io.IOException