Java Stream Close closeInputStream(InputStream inp)

Here you can find the source of closeInputStream(InputStream inp)

Description

close Input Stream

License

LGPL

Declaration

public static void closeInputStream(InputStream inp) 

Method Source Code

//package com.java2s;

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

public class Main {
    public static void closeInputStream(InputStream inp) {
        if (inp != null)
            try {
                inp.close();/*www. j a v  a 2s . c o  m*/
            } catch (IOException e) {
            }
    }
}

Related

  1. closeImage()
  2. closeIncludeGuard(String name, PrintWriter writer)
  3. closeInput(InputStream src)
  4. closeInputStream(DataInputStream di)
  5. closeInputStream(InputStream in)
  6. closeInputStream(InputStream inputStream)
  7. closeInputStream(InputStream inputStream)
  8. closeInputStream(InputStream stream)
  9. closeJMXConnection()