Java Stream Close closePermanentOutputWriter()

Here you can find the source of closePermanentOutputWriter()

Description

close Permanent Output Writer

License

Open Source License

Declaration

public static void closePermanentOutputWriter() 

Method Source Code

//package com.java2s;
//License from project: GNU General Public License 

import java.io.BufferedWriter;

import java.io.IOException;

public class Main {
    private static BufferedWriter outputWriter = null;

    public static void closePermanentOutputWriter() {
        if (outputWriter != null)
            try {
                outputWriter.close();//from   ww w.jav a  2 s.  c o  m
            } catch (IOException e) {
                e.printStackTrace();
            }
    }
}

Related

  1. closeOutputFile(OutputStream os)
  2. closeOutputFile(Writer pWriter)
  3. closeOutputStream(OutputStream out)
  4. closeOutputStream(OutputStream out, boolean flush)
  5. closeOutputStream(OutputStream outputStream)
  6. closePort()
  7. closePrintWriter(PrintWriter fileOutputStream)
  8. closeProcess(Process process)
  9. closeProcessStreams(Process p)