IExternalizable.ReadExternal(IObjectInput) 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.
The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays.
[Android.Runtime.Register("readExternal", "(Ljava/io/ObjectInput;)V", "GetReadExternal_Ljava_io_ObjectInput_Handler:Java.IO.IExternalizableInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void ReadExternal (Java.IO.IObjectInput? in);
[<Android.Runtime.Register("readExternal", "(Ljava/io/ObjectInput;)V", "GetReadExternal_Ljava_io_ObjectInput_Handler:Java.IO.IExternalizableInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member ReadExternal : Java.IO.IObjectInput -> unit
Parameters
- in
- IObjectInput
the stream to read data from in order to restore the object
- Attributes
Exceptions
if an error occurs attempting to read from input
.
if the class of the instance being loaded cannot be found.
Remarks
The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. The readExternal method must read the values in the same sequence and with the same types as were written by writeExternal.
Java documentation for java.io.Externalizable.readExternal(java.io.ObjectInput)
.
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.