Here you can find the source of closeQuietly(Writer writer)
public static void closeQuietly(Writer writer)
//package com.java2s; //License from project: Apache License import java.io.Closeable; import java.io.IOException; import java.io.Writer; public class Main { public static void closeQuietly(Closeable closeable) { try {//from www . java 2 s. c om if (closeable != null) { closeable.close(); } } catch (IOException ioe) { // ignore } } public static void closeQuietly(Writer writer) { closeQuietly((Closeable) writer); } }