Freigeben über


RandomAccessFile.ReadUnsignedByte Method

Definition

Reads an unsigned eight-bit number from this file.

[Android.Runtime.Register("readUnsignedByte", "()I", "")]
public int ReadUnsignedByte ();
[<Android.Runtime.Register("readUnsignedByte", "()I", "")>]
abstract member ReadUnsignedByte : unit -> int
override this.ReadUnsignedByte : unit -> int

Returns

the next byte of this file, interpreted as an unsigned eight-bit number.

Implements

Attributes

Exceptions

if the end of this file is detected.

if this file is closed or another I/O error occurs.

Remarks

Reads an unsigned eight-bit number from this file. This method reads a byte from this file, starting at the current file pointer, and returns that byte.

This method blocks until the byte is read, the end of the stream is detected, or an exception is thrown.

Java documentation for java.io.RandomAccessFile.readUnsignedByte().

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

See also