FileLock.Channel Method

Definition

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

[Android.Runtime.Register("channel", "()Ljava/nio/channels/FileChannel;", "")]
public Java.Nio.Channels.FileChannel? Channel ();
[<Android.Runtime.Register("channel", "()Ljava/nio/channels/FileChannel;", "")>]
member this.Channel : unit -> Java.Nio.Channels.FileChannel

Returns

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

Attributes

Remarks

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

This method has been superseded by the #acquiredBy acquiredBy method.

Java documentation for java.nio.channels.FileLock.channel().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to