Here you can find the source of closeQuietly(final InputStream in)
public static void closeQuietly(final InputStream in)
//package com.java2s; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.Reader; public class Main { public static void closeQuietly(final InputStream in) { if (in != null) { try { in.close();/* w w w .j a va 2s . c o m*/ } catch (IOException ioe) { // ignore } } } public static void closeQuietly(final Reader reader) { if (reader != null) { try { reader.close(); } catch (IOException ioe) { // ignore } } } public static void closeQuietly(final OutputStream in) { if (in != null) { try { in.close(); } catch (IOException ioe) { // ignore } } } }