private void invalidateFileHandle(){
  if (file != null) {
    file=null;
  }
}

private void invalidateFileHandle ( ) { if ( file != null ) { file = null ; } }
if name / path changes , invalidate the file handle ( if not null ) .
