ObjectInputStream.ReadClassDescriptor 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.
Read a class descriptor from the serialization stream.
[Android.Runtime.Register("readClassDescriptor", "()Ljava/io/ObjectStreamClass;", "GetReadClassDescriptorHandler")]
protected virtual Java.IO.ObjectStreamClass? ReadClassDescriptor ();
[<Android.Runtime.Register("readClassDescriptor", "()Ljava/io/ObjectStreamClass;", "GetReadClassDescriptorHandler")>]
abstract member ReadClassDescriptor : unit -> Java.IO.ObjectStreamClass
override this.ReadClassDescriptor : unit -> Java.IO.ObjectStreamClass
Returns
the class descriptor read
- Attributes
Exceptions
if a class for one of the objects cannot be found.
if an error occurs while reading from the source stream.
Remarks
Read a class descriptor from the serialization stream. This method is called when the ObjectInputStream expects a class descriptor as the next item in the serialization stream. Subclasses of ObjectInputStream may override this method to read in class descriptors that have been written in non-standard formats (by subclasses of ObjectOutputStream which have overridden the writeClassDescriptor
method). By default, this method reads class descriptors according to the format defined in the Object Serialization specification.
Added in 1.3.
Java documentation for java.io.ObjectInputStream.readClassDescriptor()
.
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.