Sdílet prostřednictvím


ObjectInputStream.ReadFields Method

Definition

Reads the persistent fields from the stream and makes them available by name.

[Android.Runtime.Register("readFields", "()Ljava/io/ObjectInputStream$GetField;", "GetReadFieldsHandler")]
public virtual Java.IO.ObjectInputStream.GetField? ReadFields ();
[<Android.Runtime.Register("readFields", "()Ljava/io/ObjectInputStream$GetField;", "GetReadFieldsHandler")>]
abstract member ReadFields : unit -> Java.IO.ObjectInputStream.GetField
override this.ReadFields : unit -> Java.IO.ObjectInputStream.GetField

Returns

the <code>GetField</code> object representing the persistent fields of the object being deserialized

Attributes

Exceptions

if the class of an object being deserialized can not be found.

if an error occurs while reading from this stream.

if this stream is currently not reading an object.

Remarks

Java documentation for java.io.ObjectInputStream.readFields().

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