Java Stream Close closeQuietly(InputStream is)

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

Description

close Quietly

License

Apache License

Parameter

Parameter Description
is a parameter

Declaration

public static void closeQuietly(InputStream is) 

Method Source Code


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

import java.io.InputStream;

public class Main {
    /** //from w  ww  .  j  av a 2  s . c  o  m
     * @param is
     */
    public static void closeQuietly(InputStream is) {

        try {
            if (is != null) {
                is.close();
            }
        } catch (Exception e) {
            //Ignore
        }
    }
}

Related

  1. closeQuietly(InputStream is)
  2. closeQuietly(InputStream is)
  3. closeQuietly(InputStream is)
  4. closeQuietly(InputStream is)
  5. closeQuietly(InputStream is)
  6. closeQuietly(InputStream is)
  7. closeQuietly(InputStream stream)
  8. closeQuietly(InputStream x)
  9. closeQuietly(java.io.Closeable writer)