Here you can find the source of closeStream(Closeable... closeable)
public static void closeStream(Closeable... closeable)
//package com.java2s; //License from project: Apache License import java.io.*; public class Main { public static void closeStream(Closeable... closeable) { for (Closeable c : closeable) { if (c != null) { try { c.close();/*w w w.j av a 2s . c o m*/ } catch (IOException ignored) { } } } } }