Here you can find the source of close(Closeable closeable, boolean ignoreException)
public static void close(Closeable closeable, boolean ignoreException)
//package com.java2s; //License from project: Apache License import java.io.Closeable; import java.io.IOException; import java.io.UncheckedIOException; public class Main { public static void close(Closeable closeable) { close(closeable, false);/*from ww w .j a v a 2s . c o m*/ } public static void close(Closeable closeable, boolean ignoreException) { if (closeable == null) { return; } try { closeable.close(); } catch (IOException e) { if (ignoreException == false) { throw new UncheckedIOException(e); } } } }