Java tutorial
//package com.java2s; import java.io.InputStream; public class Main { public static final void closeQuitely(InputStream is) { if (is != null) { try { is.close(); } catch (Throwable ignored) { //ignored } } } }