Java Stream Close close(BufferedReader br)

Here you can find the source of close(BufferedReader br)

Description

close

License

Apache License

Declaration

public static void close(BufferedReader br) throws IOException 

Method Source Code


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

import java.io.*;

public class Main {
    public static void close(OutputStream os) throws IOException {
        if (os != null)
            os.close();//from ww  w. ja v  a2 s  .  c om
    }

    public static void close(Writer w) throws IOException {
        if (w != null)
            w.close();
    }

    public static void close(RandomAccessFile raf) throws IOException {
        if (raf != null)
            raf.close();
    }

    public static void close(BufferedReader br) throws IOException {
        br.close();
    }
}

Related

  1. close(Appendable output)
  2. close(Appendable sb, String comp)
  3. close(BufferedReader br)
  4. close(BufferedWriter bufferedWriter)
  5. close(ClassLoader cl)
  6. close(Closeable bufferedInputStream)
  7. close(Closeable closeable, boolean ignoreException)