Type Reason Java.IO.IOException if an error occurs while reading from the source stream. Java.IO.StreamCorruptedException if the source stream does not contain readable serialized objects.
Reads and validates the ObjectInputStream header from the source stream.