Udostępnij za pośrednictwem


FileChannel.Size Method

Definition

Returns the current size of this channel's file.

[Android.Runtime.Register("size", "()J", "GetSizeHandler")]
public abstract long Size ();
[<Android.Runtime.Register("size", "()J", "GetSizeHandler")>]
abstract member Size : unit -> int64

Returns

The current size of this channel's file, measured in bytes

Implements

Attributes

Exceptions

if this channel is closed.

if an I/O error occurs while getting the size of the file.

Remarks

Returns the current size of this channel's file.

Java documentation for java.nio.channels.FileChannel.size().

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