public void close(){
  closeResources();
  valid=false;
  LOGGER.info("Log: Closed file " + file.toAbsolutePath());
}

public void close ( ) { closeResources ( ) ; valid = false ; LOGGER . info ( "Log: Closed file " + file . toAbsolutePath ( ) ) ; }
properly close the file , which means it can ' t be used anymore .
