Udostępnij za pośrednictwem


ObjectOutputStream.WriteStreamHeader Method

Definition

The writeStreamHeader method is provided so subclasses can append or prepend their own header to the stream.

[Android.Runtime.Register("writeStreamHeader", "()V", "GetWriteStreamHeaderHandler")]
protected virtual void WriteStreamHeader ();
[<Android.Runtime.Register("writeStreamHeader", "()V", "GetWriteStreamHeaderHandler")>]
abstract member WriteStreamHeader : unit -> unit
override this.WriteStreamHeader : unit -> unit
Attributes

Exceptions

if an error occurs while writing to the target stream.

Remarks

The writeStreamHeader method is provided so subclasses can append or prepend their own header to the stream. It writes the magic number and version to the stream.

Java documentation for java.io.ObjectOutputStream.writeStreamHeader().

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