Here you can find the source of closeStream(InputStream ins)
public static void closeStream(InputStream ins)
//package com.java2s; //License from project: Apache License import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.Reader; import java.io.Writer; public class Main { public static void closeStream(Writer writer) { try {/*w ww . j av a 2 s .c o m*/ writer.close(); } catch (IOException e) { } } public static void closeStream(Reader reader) { try { reader.close(); } catch (IOException e) { } } public static void closeStream(InputStream ins) { try { ins.close(); } catch (IOException e) { } } public static void closeStream(OutputStream out) { try { out.close(); } catch (IOException e) { } } }