Udostępnij za pośrednictwem


ObjectOutputStream.WriteObjectOverride(Object) Method

Definition

Method used by subclasses to override the default writeObject method.

[Android.Runtime.Register("writeObjectOverride", "(Ljava/lang/Object;)V", "GetWriteObjectOverride_Ljava_lang_Object_Handler")]
protected virtual void WriteObjectOverride (Java.Lang.Object? obj);
[<Android.Runtime.Register("writeObjectOverride", "(Ljava/lang/Object;)V", "GetWriteObjectOverride_Ljava_lang_Object_Handler")>]
abstract member WriteObjectOverride : Java.Lang.Object -> unit
override this.WriteObjectOverride : Java.Lang.Object -> unit

Parameters

obj
Object

object to be written to the underlying stream

Attributes

Exceptions

if an error occurs while writing to the target stream.

Remarks

Method used by subclasses to override the default writeObject method. This method is called by trusted subclasses of ObjectInputStream that constructed ObjectInputStream 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.ObjectOutputStream.writeObjectOverride(java.lang.Object).

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