Java In A Nutshell, 5th Edition

StreamCorruptedException java.io

Java 1.1 serializable checked

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

Figure 9-57. java.io.StreamCorruptedException

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

Thrown By

ObjectInputStream.readStreamHeader( )

Категории