Java.io.ObjectOutputStream writeStreamHeader() Method



Description

The java.io.ObjectOutputStream.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.

Declaration

Following is the declaration for java.io.ObjectOutputStream.writeStreamHeader() method.

protected void writeStreamHeader()

Parameters

NA

Return Value

This method does not return a value.

Exception

IOException − If I/O errors occur while writing to the underlying stream.

java_io_objectoutputstream.htm
Advertisements