Java Stream Close closeStatusFile(PrintWriter pwStatusFile)

Here you can find the source of closeStatusFile(PrintWriter pwStatusFile)

Description

This will close the status file.

License

Apache License

Parameter

Parameter Description
pwStatusFile The status file to be closed.

Declaration

private static void closeStatusFile(PrintWriter pwStatusFile) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.io.PrintWriter;

public class Main {
    /**//  w  w  w . j  av  a2s  .co m
     * This will close the status file.
     * 
     * @param pwStatusFile The status file to be closed.
     */
    private static void closeStatusFile(PrintWriter pwStatusFile) {
        if (pwStatusFile != null) {
            pwStatusFile.close();
            pwStatusFile = null;
        }
    }
}

Related

  1. closeSilently(InputStream inputStream)
  2. closeSilently(InputStream... inputStreams)
  3. closeSilently(java.util.logging.Logger log, Closeable stream)
  4. closeSilently(Object obj, Closeable stream)
  5. closeSilently(OutputStream outputStream)
  6. closeStream(Closeable aStream)
  7. closeStream(Closeable closeable)
  8. closeStream(Closeable closeable)
  9. closeStream(Closeable stream)