src/main/java/org/jboss/util/stream/Streams.java
/**
    * Attempt to flush and close an array of <tt>OutputStream</tt>s.
    *
    * @param streams  <tt>OutputStream</tt>s to attempt to flush and close.
    * @return         <tt>True</tt> if all streams were flushed and closed, 
    *                 or <tt>false</tt> if an exception was thrown.
    */
Attempt to flush and close an array of OutputStreams.
@param streams  OutputStreams to attempt to flush and close.
@return         True if all streams were flushed and closed,
or false if an exception was thrown.
Attempt to flush and close an array of OutputStreams . @param streams OutputStreams to attempt to flush and close . @return True if all streams were flushed and closed or false if an exception was thrown .
public static boolean fclose(final OutputStream[] streams) {
      boolean success = true;
      for (int i=0; i<streams.length; i++) {
         boolean rv = fclose(streams[i]); 
         if (!rv) success = false;
      }
      return success;
   }
public static boolean fclose ( final OutputStream [ ] streams ) { boolean success = true ; for ( int i = 0 ; i < streams . length ; i ++ ) { boolean rv = fclose ( streams [ i ] ) ; if ( ! rv ) success = false ; } return success ; }
Attempt to flush and close an array of <tt>OutputStream</tt>s.
Attempt to flush and close an array of <tt > OutputStream< / tt > s .