public void close(){
  while (!mReceivers.isEmpty()) {
    mContext.unregisterReceiver(mReceivers.remove(0));
  }
  if (mOutputWriter != null) {
    try {
      mOutputWriter.close();
    }
 catch (    IOException e) {
      Log.w(mTag,"Test output file could not be closed",e);
    }
  }
}

public void close ( ) { while ( ! mReceivers . isEmpty ( ) ) { mContext . unregisterReceiver ( mReceivers . remove ( 0 ) ) ; } if ( mOutputWriter != null ) { try { mOutputWriter . close ( ) ; } catch ( IOException e ) { Log . w ( mTag , "Test output file could not be closed" , e ) ; } } }
closes the utility instance and unregisters any broadcastreceivers .
