Java InputStream Close close(InputStream closeable)

Here you can find the source of close(InputStream closeable)

Description

close

License

LGPL

Declaration

public static void close(InputStream closeable) 

Method Source Code


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

import java.io.IOException;
import java.io.InputStream;

public class Main {
    public static void close(InputStream closeable) {
        try {/*  ww  w  .  j  a v  a 2s  . c om*/
            if (closeable != null) {
                closeable.close();
            }
        } catch (IOException e) {
        }
    }
}

Related

  1. close(InputStream in)
  2. close(InputStream in)
  3. close(InputStream in)
  4. close(InputStream in)