Here you can find the source of closeOutputStream(OutputStream outputStream)
private static void closeOutputStream(OutputStream outputStream) throws IOException
//package com.java2s; //License from project: LGPL import java.io.IOException; import java.io.OutputStream; public class Main { private static void closeOutputStream(OutputStream outputStream) throws IOException { if (outputStream != null) { outputStream.close();/* w ww . ja v a 2 s. c o m*/ } } }