Here you can find the source of closeQuietly(InputStream is)
static void closeQuietly(InputStream is)
//package com.java2s; //License from project: Apache License import java.io.InputStream; import java.io.IOException; public class Main { /** Close a possibly-null InputStream and swallow any resulting IOException. */ static void closeQuietly(InputStream is) { if (is == null) { return; }//from w ww.jav a 2 s .co m try { is.close(); } catch (IOException ioe) { // swallow exception } } }