Java InputStream Close close(InputStream in)

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

Description

close

License

Apache License

Declaration

public static void close(InputStream in) 

Method Source Code

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

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

public class Main {
    public static void close(InputStream in) {
        try {/*from w  w  w.ja va  2s.  c  om*/
            in.close();
        } catch (IOException e) {
        }
    }

    public static void close(OutputStream out) {
        try {
            out.close();
        } catch (IOException e) {
        }
    }
}

Related

  1. close(InputStream closeable)
  2. close(InputStream in)
  3. close(InputStream in)
  4. close(InputStream in)
  5. close(InputStream in)
  6. close(InputStream in)
  7. close(InputStream in)
  8. close(InputStream in)