Java Stream Close closeFile(PrintStream ps)

Here you can find the source of closeFile(PrintStream ps)

Description

close File

License

LGPL

Declaration

public static void closeFile(PrintStream ps) 

Method Source Code

//package com.java2s;
/*/*  w  w  w.j ava 2s.c  o m*/
 * GrGen: graph rewrite generator tool -- release GrGen.NET 4.4
 * Copyright (C) 2003-2015 Universitaet Karlsruhe, Institut fuer Programmstrukturen und Datenorganisation, LS Goos; and free programmers
 * licensed under LGPL v3 (see LICENSE.txt included in the packaging of this file)
 * www.grgen.net
 */

import java.io.PrintStream;

public class Main {
    public static void closeFile(PrintStream ps) {
        ps.flush();
        ps.close();
    }
}

Related

  1. closeFile()
  2. closeFile(File file, boolean toBeDeleted)
  3. closeFile(File file, RandomAccessFile raf)
  4. closeFile(FileWriter fw)
  5. closeFile(final Closeable p_closeable)
  6. closeFile(RandomAccessFile file)
  7. closeFiles(Closeable... closeables)
  8. closeFileWriter(BufferedWriter bw)
  9. closeFileWriter(FileWriter file)