Type Reason Java.Nio.Channels.ClosedChannelException if the channel is already closed when an attempt to release the lock is made. Java.IO.IOException if another I/O error occurs.
Releases this particular lock on the file. If the lock is invalid then this method has no effect. Once released, the lock becomes invalid.