Java tutorial
//package com.java2s; import java.io.IOException; import java.io.InputStream; public class Main { public static void closeInputStreamQuiet(InputStream input) { if (input == null) return; try { input.close(); } catch (IOException e) { } } }