Java tutorial
//package com.java2s; //License from project: Open Source License import java.io.IOException; import java.io.InputStream; public class Main { private static void closeInputStream(InputStream in) { if (null != in) { try { in.close(); } catch (IOException e) { e.printStackTrace(); } } } }