Dela via


RandomAccessFile.ReadDouble Method

Definition

Reads a double from this file.

[Android.Runtime.Register("readDouble", "()D", "")]
public double ReadDouble ();
[<Android.Runtime.Register("readDouble", "()D", "")>]
abstract member ReadDouble : unit -> double
override this.ReadDouble : unit -> double

Returns

the next eight bytes of this file, interpreted as a double.

Implements

Attributes

Exceptions

if the end of this file is detected.

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

Remarks

Reads a double from this file. This method reads a long value, starting at the current file pointer, as if by the readLong method and then converts that long to a double using the longBitsToDouble method in class Double.

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

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

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