Here you can find the source of closeStream(Closeable stream)
public static void closeStream(Closeable stream)
//package com.java2s; //License from project: Apache License import java.io.Closeable; import java.io.IOException; public class Main { public static void closeStream(Closeable stream) { try {/*from w w w . j a v a 2 s.com*/ stream.close(); } catch (IOException e) { throw new IllegalArgumentException(stream + " can not close", e); } } }