ObjectInputStream.ReadStreamHeader Method

Definition

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

C#
[Android.Runtime.Register("readStreamHeader", "()V", "GetReadStreamHeaderHandler")]
protected virtual void ReadStreamHeader ();
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

Product Versions
.NET for Android .NET for Android API 34, .NET for Android API 35