Java Stream Close closeFileWriter(BufferedWriter bw)

Here you can find the source of closeFileWriter(BufferedWriter bw)

Description

close File Writer

License

Open Source License

Declaration

public static void closeFileWriter(BufferedWriter bw) 

Method Source Code


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

import java.io.BufferedWriter;

import java.io.IOException;

public class Main {
    public static void closeFileWriter(BufferedWriter bw) {
        try {/*from  w  w  w. j av  a2  s . co  m*/
            bw.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}

Related

  1. closeFile(FileWriter fw)
  2. closeFile(final Closeable p_closeable)
  3. closeFile(PrintStream ps)
  4. closeFile(RandomAccessFile file)
  5. closeFiles(Closeable... closeables)
  6. closeFileWriter(FileWriter file)
  7. closeGZipStream(GZIPOutputStream outStream)
  8. closeHTML(String pageTemplate, PrintStream out)
  9. closeIgnoreExceptions(Closeable c)