Java tutorial
//package com.java2s; import java.io.IOException; import java.io.OutputStream; public class Main { private static void close(OutputStream os) throws IOException { if (os != null) { os.close(); } } }