Here you can find the source of closeOutputFile(Writer pWriter)
public static void closeOutputFile(Writer pWriter)
//package com.java2s; //License from project: Open Source License import java.io.IOException; import java.io.Writer; public class Main { /**//w ww .ja va2 s . c o m * closes the outputfile */ public static void closeOutputFile(Writer pWriter) { if (null != pWriter) { try { pWriter.flush(); } catch (IOException e) { e.printStackTrace(); } try { pWriter.close(); } catch (IOException e) { e.printStackTrace(); } } } }