ObjectInputStream.ReadStreamHeader Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.