public synchronized void save() throws IOException {
  try (KeyTabOutputStream kos=new KeyTabOutputStream(new FileOutputStream(tabName))){
    kos.writeVersion(kt_vno);
    for (int i=0; i < entries.size(); i++) {
      kos.writeEntry(entries.elementAt(i));
    }
  }
 }

public synchronized void save ( ) throws IOException { try ( KeyTabOutputStream kos = new KeyTabOutputStream ( new FileOutputStream ( tabName ) ) ) { kos . writeVersion ( kt_vno ) ; for ( int i = 0 ; i < entries . size ( ) ; i ++ ) { kos . writeEntry ( entries . elementAt ( i ) ) ; } } }
saves the file at the directory .
