ObjectOutputStream.PutField.Write(IObjectOutput) Method

Definition

Caution

deprecated

Write the data and fields to the specified ObjectOutput stream, which must be the same stream that produced this PutField object.

[Android.Runtime.Register("write", "(Ljava/io/ObjectOutput;)V", "GetWrite_Ljava_io_ObjectOutput_Handler")]
[System.Obsolete("deprecated")]
public abstract void Write (Java.IO.IObjectOutput out);
[<Android.Runtime.Register("write", "(Ljava/io/ObjectOutput;)V", "GetWrite_Ljava_io_ObjectOutput_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member Write : Java.IO.IObjectOutput -> unit

Parameters

out
IObjectOutput

the stream to write the data and fields to

Attributes

Exceptions

if an error occurs while writing to the target stream.

Remarks

Write the data and fields to the specified ObjectOutput stream, which must be the same stream that produced this PutField object.

This member is deprecated. This method does not write the values contained by this PutField object in a proper format, and may result in corruption of the serialization stream. The correct way to write PutField data is by calling the java.io.ObjectOutputStream#writeFields() method.

Java documentation for java.io.ObjectOutputStream.PutField.write(java.io.ObjectOutput).

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