ObjectOutputStream.InterfaceConsts.ProtocolVersion2 Field

Definition

Caution

This constant will be removed in the future version. Use Java.IO.ObjectStreamProtocol enum directly instead of this field.

A Stream Protocol Version.

[Android.Runtime.Register("PROTOCOL_VERSION_2")]
[System.Obsolete("This constant will be removed in the future version. Use Java.IO.ObjectStreamProtocol enum directly instead of this field.", true)]
public const Java.IO.ObjectStreamProtocol ProtocolVersion2 = 2;
[<Android.Runtime.Register("PROTOCOL_VERSION_2")>]
[<System.Obsolete("This constant will be removed in the future version. Use Java.IO.ObjectStreamProtocol enum directly instead of this field.", true)>]
val mutable ProtocolVersion2 : Java.IO.ObjectStreamProtocol

Field Value

Value = 2
Attributes

Remarks

A Stream Protocol Version.

This protocol is written by JVM 1.2.

Externalizable data is written in block data mode and is terminated with TC_ENDBLOCKDATA. Externalizable class descriptor flags has SC_BLOCK_DATA enabled. JVM 1.1.6 and greater can read this format change.

Enables writing a nonSerializable class descriptor into the stream. The serialVersionUID of a nonSerializable class is set to 0L.

Added in 1.2.

Java documentation for java.io.ObjectStreamConstants.PROTOCOL_VERSION_2.

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