Java tutorial
//package com.java2s; //License from project: Open Source License import java.io.IOException; import java.io.InputStream; public class Main { public static void closeInputStream(InputStream is) { if (is != null) { try { is.close(); } catch (IOException e) { //pass } finally { is = null; } } } }