Here you can find the source of closeStreamIgnoreExpection(InputStream stream)
public static void closeStreamIgnoreExpection(InputStream stream)
//package com.java2s; import java.io.InputStream; public class Main { public static void closeStreamIgnoreExpection(InputStream stream) { try {//from w ww . ja va 2s . co m if (stream != null) { stream.close(); } } catch (Exception e) { // do nothing here } } }