Code example for FileLock

Methods: release

0
    try { 
      FileLock lock = _fileLock;
      _fileLock = null;
 
      if (lock != null) {
        lock.release();
 
        return true; 
      } 
 
      return false; 
    } catch (IOException e) {
      log.log(Level.FINE, e.toString(), e);
      return false; 
    } 
  } 
 
  /** 
   * Seeks based on the start. 
   */