public final class IO
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOG |
Modifier | Constructor and Description |
---|---|
private |
IO() |
Modifier and Type | Method and Description |
---|---|
static void |
close(java.io.Closeable closeable)
Closes a
Closeable object without suppressing a possible IOException . |
static void |
closeQuietly(java.io.Closeable closeable)
Closes a
Closeable object and suppresses a possible IOException . |
public static void close(java.io.Closeable closeable) throws java.io.IOException
Closeable
object without suppressing a possible IOException
.closeable
- The Closeable
to closejava.io.IOException
- when the Closeable
can't be closedpublic static void closeQuietly(java.io.Closeable closeable)
Closeable
object and suppresses a possible IOException
.closeable
- The Closeable
to close