[Chapter 24] 24.60 java.io.StreamCorruptedException (JDK 1.1)
Author: David Flanagan
Date: Thu Jul 31 16:23:02 1997

#

| Chapter 24 The java.io Package |

## 24.60 java.io.StreamCorruptedException (JDK 1.1)

###

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

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

### Hierarchy:

Object->Throwable(Serializable)->Exception->IOException->ObjectStreamException->StreamCorruptedException

### Thrown By:

ObjectInputStream(), ObjectInputStream.readStreamHeader()

java.io.Serializable (JDK 1.1) |  | java.io.StreamTokenizer (JDK 1.0)