/** * Equivalent of {@link #closeQuietly(InputStream)} but for {@link OutputStream} extending classes */ public static void closeQuietly(OutputStream os) { close(os); }
/** Equivalent of {@link #closeQuietly(Writer)} but for {@link Writer} extending classes */ public static void closeQuietly(Writer writer) { close(writer); }
/** * Performs the same function as the commons io version but also performs logging of streams which * threw an exception when trying to close them and logs them at error level */ public static void closeQuietly(InputStream is) { close(is); }
/** * Performs the same function as the commons io version but also performs logging of readers which * threw an exception when trying to close them and logs them at error level */ public static void closeQuietly(Reader reader) { close(reader); }