Java tutorial
//package com.java2s; //License from project: Open Source License import java.io.Closeable; import java.io.IOException; public class Main { public static void shut(Closeable c) { if (c != null) { try { c.close(); } catch (IOException ignored) { // ok } } } }