Java Stream Close closeReader(Reader r)

Here you can find the source of closeReader(Reader r)

Description

close Reader

License

Open Source License

Declaration

public final static void closeReader(Reader r) 

Method Source Code

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

import java.io.Reader;

public class Main {

    public final static void closeReader(Reader r) {
        if (r != null)
            try {
                r.close();/*from   w  w w.java2  s .c  o m*/
            } catch (Exception e) {
            }
    }
}

Related

  1. closeQuietly(ZipFile closeable)
  2. closeQuietlyWithResult(InputStream sourceInput, boolean suppressionSourceExists)
  3. closeRandomAccessFile()
  4. closeReader(BufferedReader reader)
  5. closeReader(final Reader reader)
  6. closeReader(Reader reader)
  7. closeReader(Reader reader)
  8. closeReader(Reader rReader)
  9. closeRelaxed(Closeable resource)