Here you can find the source of closePrintWriter(PrintWriter fileOutputStream)
Parameter | Description |
---|
public final static void closePrintWriter(PrintWriter fileOutputStream)
//package com.java2s; //License from project: Open Source License import java.io.PrintWriter; public class Main { /**/*from w w w . j a v a2 s . com*/ * @param fileOutputStream: opened file in writing mode; it can be null * */ public final static void closePrintWriter(PrintWriter fileOutputStream) { if (null != fileOutputStream) { fileOutputStream.flush(); fileOutputStream.close(); } } }