Lines Matching refs:channel
122 // Open the file for reading and get the corresponding file channel.
123 FileChannel channel = null;
128 channel = raf.getChannel();
141 // Try to obtain a shared lock on the file channel.
145 fileLock = channel.tryLock(0L, Long.MAX_VALUE, true);
154 close(channel, raf);
165 close(channel, raf);
235 // Open the file read+write and get the corresponding file channel.
236 FileChannel channel = null;
241 channel = raf.getChannel();
254 // Try to obtain an exclusive lock on the file channel.
258 fileLock = channel.tryLock(0L, Long.MAX_VALUE, false);
267 close(channel, raf);
278 close(channel, raf);
333 lock.channel().close();
339 // Even though we couldn't close the channel for some reason, this
374 lock.channel().close();
380 // Even though we couldn't close the channel for some reason, this