Java Stream Close close(Closeable bufferedInputStream)

Here you can find the source of close(Closeable bufferedInputStream)

Description

close

License

Apache License

Declaration

static void close(Closeable bufferedInputStream) 

Method Source Code


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

import java.io.Closeable;
import java.io.IOException;

public class Main {
    static void close(Closeable bufferedInputStream) {
        if (bufferedInputStream != null) {
            try {
                bufferedInputStream.close();
            } catch (IOException e) {
                e.printStackTrace();/*from w  w w.  j  a v  a2  s. co m*/
            }
        }
    }
}

Related

  1. close(Appendable sb, String comp)
  2. close(BufferedReader br)
  3. close(BufferedReader br)
  4. close(BufferedWriter bufferedWriter)
  5. close(ClassLoader cl)
  6. close(Closeable closeable, boolean ignoreException)
  7. close(Closeable closeable, boolean swallowIOException)
  8. close(Closeable closeable, Logger logger)
  9. close(Closeable io, Logger logger)