KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > java > nio > channels > FileLock

java.nio.channels
Class FileLock

java.lang.Object
  extended by java.nio.channels.FileLock
See Also:
Top Examples, Source Code, mapped into memory, overlaps, isShared, isValid, release, tryLock, lock

public final FileChannel channel()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected FileLock(FileChannel channel,
                   long position,
                   long size,
                   boolean shared)
See Also:
IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final boolean isShared()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public abstract boolean isValid()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final boolean overlaps(long position,
                              long size)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final long position()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public abstract void release()
                      throws IOException
See Also:
ClosedChannelException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final long size()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final String toString()
See Also:
Object
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags