Java.IO.ObjectOutputStream.ReplaceObject Method
Allows trusted subclasses to substitute the specified original object with a new object.

Syntax

[Android.Runtime.Register("replaceObject", "(Ljava/lang/Object;)Ljava/lang/Object;", "GetReplaceObject_Ljava_lang_Object_Handler")]
protected virtual Java.Lang.Object ReplaceObject (Java.Lang.Object object)

See Also

ObjectOutputStream.EnableReplaceObject(bool)
ObjectInputStream.EnableResolveObject(bool)
ObjectInputStream.ResolveObject(Java.Lang.Object)

Parameters

object
the original object for which a replacement may be defined.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.IO.IOExceptionif any I/O error occurs while creating the replacement object.

Remarks

Allows trusted subclasses to substitute the specified original object with a new object. Object substitution has to be activated first with calling enableReplaceObject(true). This implementation just returns object.

[Android Documentation]

Requirements

Namespace: Java.IO
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1