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