Here you can find the source of closeDebugFile()
public static void closeDebugFile()
//package com.java2s; //License from project: Open Source License import java.io.PrintStream; public class Main { private static PrintStream debugStream = null; public static String debugFileName = null; public static void closeDebugFile() { debugFileName = null;/*w w w . ja v a 2s.c o m*/ if (debugStream == null) { return; } debugStream.close(); debugStream = null; } }