Name

StreamCorruptedException

Synopsis

Signals that the data stream being read by an ObjectInputStream has been corrupted and does not contain valid serialized object data.

java.io.StreamCorruptedException

Figure 9-57. java.io.StreamCorruptedException

public class StreamCorruptedException extends ObjectStreamException {
// Public Constructors
     public StreamCorruptedException( );  
     public StreamCorruptedException(String reason);  
}

Thrown By

ObjectInputStream.readStreamHeader( )

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.