Module java.base
Package java.nio.channels

# Class FileLock

=
public abstract class FileLock
extends java.lang.Object
implements java.lang.AutoCloseable

## Constructors

- =
  protected FileLock(java.nio.channels.AsynchronousFileChannel arg0, long arg1, long arg2, boolean arg3)
- =
  protected FileLock(java.nio.channels.FileChannel arg0, long arg1, long arg2, boolean arg3)

## Methods

- =
  public java.nio.channels.Channel acquiredBy()
- =
  public final java.nio.channels.FileChannel channel()
- =
  public final void close() throws java.io.IOException
- =
  public final boolean isShared()
- =
  public abstract boolean isValid()
- =
  public final boolean overlaps(long arg0, long arg1)
- =
  public final long position()
- =
  public abstract void release() throws java.io.IOException
- =
  public final long size()
- =
  public final java.lang.String toString()

## Summary

No differences.