protected void readStreamHeader() throws IOException, StreamCorruptedException {
  if (input.readShort() == STREAM_MAGIC && input.readShort() == STREAM_VERSION) {
    return;
  }
  throw new StreamCorruptedException();
}

protected void readStreamHeader ( ) throws IOException , StreamCorruptedException { if ( input . readShort ( ) == STREAM_MAGIC && input . readShort ( ) == STREAM_VERSION ) { return ; } throw new StreamCorruptedException ( ) ; }
reads and validates the objectinputstream header from the source stream .
