public final FileChannel channel ()

Returns the file channel upon whose file this lock was acquired.

This method has been superseded by the acquiredBy method.

Returns:  The file channel, or null if the file lock was not acquired by a file channel.