ObjectInputStream.ReadObjectOverride 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.
This method is called by trusted subclasses of ObjectOutputStream that constructed ObjectOutputStream using the protected no-arg constructor.
[Android.Runtime.Register("readObjectOverride", "()Ljava/lang/Object;", "GetReadObjectOverrideHandler")]
protected virtual Java.Lang.Object? ReadObjectOverride ();
[<Android.Runtime.Register("readObjectOverride", "()Ljava/lang/Object;", "GetReadObjectOverrideHandler")>]
abstract member ReadObjectOverride : unit -> Java.Lang.Object
override this.ReadObjectOverride : unit -> Java.Lang.Object
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.