Here you can find the source of closeQuietly(InputStream is)
public static void closeQuietly(InputStream is)
//package com.java2s; import java.io.InputStream; import java.io.OutputStream; public class Main { public static void closeQuietly(InputStream is) { try {// ww w . jav a2 s . com if (is != null) { is.close(); } } catch (Exception e) { e.printStackTrace(); } } public static void closeQuietly(OutputStream out) { try { if (out != null) { out.close(); } } catch (Exception e) { e.printStackTrace(); } } }