com.faunos.util.io
Class FilterFileChannel.FilterFileLock
java.lang.Object
java.nio.channels.FileLock
com.faunos.util.io.FilterFileChannel.FilterFileLock
- Enclosing class:
- FilterFileChannel
protected static class FilterFileChannel.FilterFileLock
- extends FileLock
A FileLock
filter. The main point about this
implementation is that it returns the correct FileChannel
.
- Author:
- Babak Farhang
Method Summary |
boolean |
isValid()
Delegates to the underlying lock. |
void |
release()
Delegates to the underlying lock. |
innerLock
protected final FileLock innerLock
FilterFileChannel.FilterFileLock
protected FilterFileChannel.FilterFileLock(FileLock innerLock,
FilterFileChannel channel)
FilterFileChannel.FilterFileLock
protected FilterFileChannel.FilterFileLock(FileLock innerLock,
FilterFileChannel channel,
long position,
long size,
boolean shared)
isValid
public boolean isValid()
- Delegates to the underlying lock.
- Specified by:
isValid
in class FileLock
release
public void release()
throws IOException
- Delegates to the underlying lock.
- Specified by:
release
in class FileLock
- Throws:
IOException