Java Stream Close closeLog()

Here you can find the source of closeLog()

Description

close Log

License

Open Source License

Declaration

public static void closeLog() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.io.FileWriter;
import java.io.IOException;

public class Main {
    private static FileWriter fw;

    public static void closeLog() {
        try {//w ww.  j  a  va 2 s.  co m
            if (fw != null) {
                fw.close();
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
        System.err.println("NwtUtil.closeLog");
    }
}

Related

  1. closeInputStream(InputStream inputStream)
  2. closeInputStream(InputStream inputStream)
  3. closeInputStream(InputStream stream)
  4. closeJMXConnection()
  5. closeKeyMap(BufferedReader in)
  6. closeLog()
  7. closeLog()
  8. closeNoException(Closeable... closeables)
  9. closeNoExceptions(Reader reader)