Java Stream Close closeQuietly(InputStream is)

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

Description

close Quietly

License

Open Source License

Declaration

public static void closeQuietly(InputStream is) 

Method Source Code

//package com.java2s;

import java.io.InputStream;

import java.io.OutputStream;

public class Main {
    public static void closeQuietly(InputStream is) {
        try {//  ww  w .  jav a2  s .  com
            if (is != null) {
                is.close();
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public static void closeQuietly(OutputStream out) {
        try {
            if (out != null) {
                out.close();
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}

Related

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