Java Stream Close closeQuietly(InputStream input)

Here you can find the source of closeQuietly(InputStream input)

Description

close Quietly

License

Apache License

Declaration

public static void closeQuietly(InputStream input) 

Method Source Code


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

import java.io.*;

public class Main {
    public static void closeQuietly(Reader input) {
        closeQuietly((Closeable) input);
    }/*from w  ww.  j  a  v a  2  s .  co  m*/

    public static void closeQuietly(InputStream input) {
        closeQuietly((Closeable) input);
    }

    public static void closeQuietly(Closeable input) {
        try {
            if (input != null) {
                input.close();
            }
        } catch (IOException ioe) {
            // ignore
        }
    }
}

Related

  1. closeQuietly(InputStream in)
  2. closeQuietly(InputStream input)
  3. closeQuietly(InputStream input)
  4. closeQuietly(InputStream input)
  5. closeQuietly(InputStream input)
  6. closeQuietly(InputStream input)
  7. closeQuietly(InputStream inputstream)
  8. closeQuietly(InputStream is)
  9. closeQuietly(InputStream is)