ObjectInputStream.ObjectInputStream

ObjectInputStream.ObjectInputStream

Class Overview | Class Members | This Package | All Packages

Syntax
public ObjectInputStream( InputStream in ) throws IOException, StreamCorruptedException
Description
Create an ObjectInputStream that reads from the specified InputStream. The stream header containing the magic number and version number are read from the stream and verified. This method will block until the corresponding ObjectOutputStream has written and flushed the header.

Exceptions
StreamCorruptedException The version or magic number are incorrect.
Exceptions
IOException An exception occurred in the underlying stream.