src/main/java/org/jboss/util/stream/Streams.java
public static boolean close(final InputStream[] streams) {
      boolean success = true;

      for (int i=0; i<streams.length; i++) {
         boolean rv = close(streams[i]);
         if (!rv) success = false;
      }

      return success;
   }
public static boolean close(final InputStream[] streams) {
      boolean success = true;

      for (int i=0; i<streams.length; i++) {
         boolean rv = close(streams[i]);
         if (!rv) success = false;
      }

      return success;
   }
Attempt to close an array of <tt>InputStream</tt>s.

@param streams Array of <tt>InputStream</tt>s to attempt to close.
@return        <tt>True</tt> if all streams were closed, or <tt>false</tt>
if an exception was thrown.