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