Java tutorial
//package com.java2s; import java.io.Closeable; import java.io.IOException; public class Main { /** * Silent close a closable object. * @param o */ public static void silentClose(Closeable o) { if (o != null) { try { o.close(); } catch (IOException e) { // msLogger.debug(ApplicationUtil.class.getName() + "#slientClose() error occurred!!!", e); } } } }