public final class IO extends Object
Modifier and Type | Method and Description |
---|---|
static void |
close(Closeable closeable)
Closes a
Closeable object without suppressing a possible IOException . |
static void |
closeQuietly(Closeable closeable)
Closes a
Closeable object and suppresses a possible IOException . |
public static void close(Closeable closeable) throws IOException
Closeable
object without suppressing a possible IOException
.closeable
- The Closeable
to closeIOException
- when the Closeable
can't be closedpublic static void closeQuietly(Closeable closeable)
Closeable
object and suppresses a possible IOException
.closeable
- The Closeable
to closeCopyright © 2021. All rights reserved.