Here you can find the source of closeInputStream(InputStream inp)
public static void closeInputStream(InputStream inp)
//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) { } } }