src/main/java/org/jboss/util/stream/Streams.java
/**
    * 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.
    */
Attempt to close an array of InputStreams.
@param streams Array of InputStreams to attempt to close.
@return        True if all streams were closed, or false
if an exception was thrown.
Attempt to close an array of InputStreams . @param streams Array of InputStreams to attempt to close . @return True if all streams were closed or false if an exception was thrown .
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.
Attempt to close an array of <tt > InputStream< / tt > s .