Here you can find the source of closeQuietly(java.io.Closeable writer)
public static void closeQuietly(java.io.Closeable writer)
//package com.java2s; //License from project: Open Source License import java.io.*; public class Main { public static void closeQuietly(java.io.Closeable writer) { try {/*from w w w. j a va 2 s.co m*/ if (writer != null) { writer.close(); } } catch (IOException ioe) { // ignore } } }