Java Stream Close closeQuietly(Reader reader)

Here you can find the source of closeQuietly(Reader reader)

Description

close Quietly

License

Open Source License

Declaration

private static void closeQuietly(Reader reader) 

Method Source Code

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

import java.io.IOException;

import java.io.Reader;

public class Main {
    private static void closeQuietly(Reader reader) {
        try {//  w w w . ja v  a  2  s . c  o  m
            if (reader != null) {
                reader.close();
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}

Related

  1. closeQuietly(Object... o)
  2. closeQuietly(ObjectInput objectInput)
  3. closeQuietly(ObjectInput... objectInputs)
  4. closeQuietly(Reader input)
  5. closeQuietly(Reader r)
  6. closeQuietly(Writer writer)
  7. closeQuietly(ZipFile closeable)
  8. closeQuietlyWithResult(InputStream sourceInput, boolean suppressionSourceExists)
  9. closeRandomAccessFile()