@Override public void close(){
  super.close();
  allLocks.remove(fileName);
  try {
    FileChannel channel=lock.channel();
    lock.release();
    channel.close();
    File file=new File(fileName + LCK_EXT);
    file.delete();
  }
 catch (  IOException e) {
  }
}

@ Override public void close ( ) { super . close ( ) ; allLocks . remove ( fileName ) ; try { FileChannel channel = lock . channel ( ) ; lock . release ( ) ; channel . close ( ) ; File file = new File ( fileName + LCK_EXT ) ; file . delete ( ) ; } catch ( IOException e ) { } }
flushes and closes all opened files .
