Here you can find the source of close(InputStream in)
public static void close(InputStream in)
//package com.java2s; //License from project: Open Source License import java.io.*; public class Main { public static void close(Reader in) { try {//from ww w. j a v a 2 s . c o m in.close(); } catch (Exception x) { // ignore } } public static void close(Writer out) { try { out.close(); } catch (Exception x) { // ignore } } public static void close(InputStream in) { try { in.close(); } catch (Exception x) { // ignore } } public static void close(OutputStream os) { try { os.close(); } catch (Exception x) { // no op } } }