Here you can find the source of close(InputStream in)
public static void close(InputStream in)
//package com.java2s; //License from project: Apache License import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; public class Main { public static void close(InputStream in) { try {/*from w w w.ja va 2s. c om*/ in.close(); } catch (IOException e) { } } public static void close(OutputStream out) { try { out.close(); } catch (IOException e) { } } }