public void close(){
  if (Debug.messageEnabled()) {
    Debug.message(logName + ":SecureFileHandler: close() called");
  }
  flush();
  try {
    if (writer != null) {
      writer.close();
    }
  }
 catch (  IOException ioe) {
    Debug.error(logName + ":SecureFileHandler: Could not close writer",ioe);
  }
  if (signTask != null) {
    stopPeriodicLogSigner();
    if (Debug.messageEnabled()) {
      Debug.message(logName + ":Stopped Log Signer");
    }
  }
  if (lv != null) {
    lv.stopLogVerifier();
    if (Debug.messageEnabled()) {
      Debug.message(logName + ":Stopped Log Verifier");
    }
  }
}

public void close ( ) { if ( Debug . messageEnabled ( ) ) { Debug . message ( logName + ":SecureFileHandler: close() called" ) ; } flush ( ) ; try { if ( writer != null ) { writer . close ( ) ; } } catch ( IOException ioe ) { Debug . error ( logName + ":SecureFileHandler: Could not close writer" , ioe ) ; } if ( signTask != null ) { stopPeriodicLogSigner ( ) ; if ( Debug . messageEnabled ( ) ) { Debug . message ( logName + ":Stopped Log Signer" ) ; } } if ( lv != null ) { lv . stopLogVerifier ( ) ; if ( Debug . messageEnabled ( ) ) { Debug . message ( logName + ":Stopped Log Verifier" ) ; } } }
flush any buffered messages and close all the files .
