MCPcopy
hub / github.com/apache/commons-io / closeQuietly

Method closeQuietly

src/main/java/org/apache/commons/io/IOUtils.java:219–222  ·  view source on GitHub ↗

Closes an Reader unconditionally. Equivalent to Reader#close(), except any exceptions will be ignored. This is typically used in finally blocks. Example code: char[] data = new char[1024]; Reader in = null; try { in = new FileReader("foo.txt"); in

(final Reader input)

Source from the content-addressed store, hash-verified

217 * @see Throwable#addSuppressed(java.lang.Throwable)
218 */
219 @Deprecated
220 public static void closeQuietly(final Reader input) {
221 closeQuietly((Closeable) input);
222 }
223
224 /**
225 * Closes an <code>Writer</code> unconditionally.

Calls 1

closeMethod · 0.45