ObjectInputStream.ReadObjectOverride Method

Definition

This method is called by trusted subclasses of ObjectOutputStream that constructed ObjectOutputStream using the protected no-arg constructor.

C#
[Android.Runtime.Register("readObjectOverride", "()Ljava/lang/Object;", "GetReadObjectOverrideHandler")]
protected virtual Java.Lang.Object? ReadObjectOverride ();

Returns

the Object read from the stream.

Attributes

Exceptions

if the class of one of the objects in the object graph cannot be found.

if an error occurs while reading from the source stream.

if primitive data types were found instead of an object.

Remarks

This method is called by trusted subclasses of ObjectOutputStream that constructed ObjectOutputStream using the protected no-arg constructor. The subclass is expected to provide an override method with the modifier "final".

Added in 1.2.

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

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

See also