Java Stream Close closeDebugFile()

Here you can find the source of closeDebugFile()

Description

close Debug File

License

Open Source License

Declaration

public static void closeDebugFile() 

Method Source Code

//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;
    }
}

Related

  1. closeBufferedFile(BufferedReader reader)
  2. closeBufferedReader(BufferedReader bufferedReader)
  3. closeCloseableIfNotNull(Closeable fileWriter)
  4. closeConnection(Closeable... closes)
  5. closeDataLine(final SourceDataLine line, final AudioInputStream ais)
  6. closeEL(InputStream is)
  7. closeEntry(ZipOutputStream... outputStreams)
  8. closeFile()
  9. closeFile()