Here you can find the source of forceClosed(InputStream stream)
public static void forceClosed(InputStream stream)
//package com.java2s; //License from project: Open Source License import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; public class Main { public static void forceClosed(InputStream stream) { if (stream != null) { try { stream.close();/*from ww w. j a v a2 s.co m*/ } catch (IOException e) { } } } public static void forceClosed(OutputStream stream) { if (stream != null) { try { stream.close(); } catch (IOException e) { } } } }