Here you can find the source of closeInputStream(InputStream inputStream)
private static void closeInputStream(InputStream inputStream)
//package com.java2s; //License from project: Apache License import java.io.IOException; import java.io.InputStream; public class Main { private static void closeInputStream(InputStream inputStream) { try {/*from www.j ava 2s . c om*/ if (inputStream != null) { inputStream.close(); } } catch (IOException e) { // what the hell?! throw new RuntimeException("Unable to close file input stream.", e); } } }