private void closeStreams(Closeable... streams){
  if (null != streams) {
    for (    Closeable stream : streams) {
      if (null != stream) {
        try {
          stream.close();
        }
 catch (        IOException e) {
          LOG.error("Error while closing stream" + stream);
        }
      }
    }
  }
}

private void closeStreams ( Closeable ... streams ) { if ( null != streams ) { for ( Closeable stream : streams ) { if ( null != stream ) { try { stream . close ( ) ; } catch ( IOException e ) { LOG . error ( "Error while closing stream" + stream ) ; } } } } }
this method closes the streams
