ObjectInputStream.DefaultReadObject Method

Definition

Read the non-static and non-transient fields of the current class from this stream.

[Android.Runtime.Register("defaultReadObject", "()V", "GetDefaultReadObjectHandler")]
public virtual void DefaultReadObject ();
[<Android.Runtime.Register("defaultReadObject", "()V", "GetDefaultReadObjectHandler")>]
abstract member DefaultReadObject : unit -> unit
override this.DefaultReadObject : unit -> unit
Attributes

Exceptions

if the object's class cannot be found.

if an I/O error occurs while reading the object data.

if this method is not called from readObject().

Remarks

Read the non-static and non-transient fields of the current class from this stream. This may only be called from the readObject method of the class being deserialized. It will throw the NotActiveException if it is called otherwise.

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

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

See also