code: public static boolean close(final Object[] streams) {
        boolean success = true;
  
        for (Object stream : streams) {
           boolean rv = close(stream);
           if (!rv) success = false;
        }
  
        return success;
     }
docs: Attempt to close an array of <tt>InputStream</tt>a and/or
  <tt>OutputStream</tt>s.
  
  @param streams Array of streams to attempt to close.
  @return <tt>True</tt> if all streams were closed, or <tt>false</tt> if an
  exception was thrown.
  @throws IllegalArgumentException Stream is not an <tt>InputStream</tt> or
  <tt>OuputStream</tt>.  Closing stops at
  the last valid stream object in this
  case.