public class IOUtils extends Object
| Constructor and Description |
|---|
IOUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
close(Closeable... objects)
Closes all given Closeables.
|
static void |
closeWhileHandlingException(Closeable... objects)
Closes all given Closeables, suppressing all thrown exceptions.
|
public static void close(Closeable... objects) throws IOException
objects - objects to call close() onIOExceptionpublic static void closeWhileHandlingException(Closeable... objects) throws IOException
objects - objects to call close() onIOException