Share via


ObjectOutputStream.AnnotateProxyClass(Class) Method

Definition

Subclasses may implement this method to store custom data in the stream along with descriptors for dynamic proxy classes.

[Android.Runtime.Register("annotateProxyClass", "(Ljava/lang/Class;)V", "GetAnnotateProxyClass_Ljava_lang_Class_Handler")]
protected virtual void AnnotateProxyClass (Java.Lang.Class? cl);
[<Android.Runtime.Register("annotateProxyClass", "(Ljava/lang/Class;)V", "GetAnnotateProxyClass_Ljava_lang_Class_Handler")>]
abstract member AnnotateProxyClass : Java.Lang.Class -> unit
override this.AnnotateProxyClass : Java.Lang.Class -> unit

Parameters

cl
Class

the proxy class to annotate custom data for

Attributes

Remarks

Subclasses may implement this method to store custom data in the stream along with descriptors for dynamic proxy classes.

This method is called exactly once for each unique proxy class descriptor in the stream. The default implementation of this method in ObjectOutputStream does nothing.

The corresponding method in ObjectInputStream is resolveProxyClass. For a given subclass of ObjectOutputStream that overrides this method, the resolveProxyClass method in the corresponding subclass of ObjectInputStream must read any data or objects written by annotateProxyClass.

Added in 1.3.

Java documentation for java.io.ObjectOutputStream.annotateProxyClass(java.lang.Class<?>).

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