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