ObjectInputStream.ReadStreamHeader Method

Definition

The readStreamHeader method is provided to allow subclasses to read and verify their own stream headers.

[Android.Runtime.Register("readStreamHeader", "()V", "GetReadStreamHeaderHandler")]
protected virtual void ReadStreamHeader ();
[<Android.Runtime.Register("readStreamHeader", "()V", "GetReadStreamHeaderHandler")>]
abstract member ReadStreamHeader : unit -> unit
override this.ReadStreamHeader : unit -> unit
Attributes

Exceptions

if an error occurs while reading from the source stream.

if the source stream does not contain readable serialized objects.

Remarks

The readStreamHeader method is provided to allow subclasses to read and verify their own stream headers. It reads and verifies the magic number and version number.

Java documentation for java.io.ObjectInputStream.readStreamHeader().

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