- All Superinterfaces:
AutoCloseable
,Closeable
A lock object obtained when a file is successfully locked.
- Author:
- AO Industries, Inc.
- See Also:
-
Method Summary
-
Method Details
-
isValid
boolean isValid()Checks if the lock is valid.- See Also:
-
close
Unlocks a file. Will usually be called in a try/finally or try-with-resources block.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
- See Also:
-