| Modifier and Type | Method and Description |
|---|---|
static void |
close(Closeable c)
Closes a (potentially null) closeable.
|
static void |
closeAndSwallowIOExceptions(Closeable c)
Closes a (potentially null) closeable, swallowing any IOExceptions thrown by
c.close().
|
public static void close(Closeable c) throws IOException
c - can be nullIOException - if c.close() throws an IOException.public static void closeAndSwallowIOExceptions(Closeable c)
c - can be nullCopyright © 2018 The Apache Software Foundation. All rights reserved.