public final class IOUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
close(Closeable closeable)
Closes the
Closeable and logs any error. |
static void |
close(Closeable closeable,
Level level,
String message)
Closes the
Closeable and logs any error. |
static String |
toHex(byte[] bytes)
Converts the byte array into a HEX string.
|
public static void close(Closeable closeable)
Closeable and logs any error.closeable - The connection to close.public static void close(Closeable closeable, Level level, String message)
Closeable and logs any error.closeable - The connection to close.level - The level to log on a failure.message - The message to log on a failure.public static String toHex(byte[] bytes)
bytes - The bytes to convert.Copyright © 2011-2012 Allanbank Consulting, Inc.. All Rights Reserved.