JavaTM 2 Platform
Standard Ed. 6

java.io
类 StreamCorruptedException

java.lang.Object
  继承者 java.lang.Throwable
      继承者 java.lang.Exception
          继承者 java.io.IOException
              继承者 java.io.ObjectStreamException
                  继承者 java.io.StreamCorruptedException
所有已实现的接口:
Serializable

public class StreamCorruptedException
extends ObjectStreamException

当从对象流中读取的控制信息与内部一致性检查相冲突时,抛出此异常。

从以下版本开始:
JDK1.1
另请参见:
序列化表格

构造方法摘要
StreamCorruptedException()
          创建一个 StreamCorruptedException,但不列出抛出异常的原因。
StreamCorruptedException(String reason)
          创建一个 StreamCorruptedException 并列出抛出异常的一个原因。
 
方法摘要
 
从类 java.lang.Throwable 继承的方法
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

StreamCorruptedException

public StreamCorruptedException(String reason)
创建一个 StreamCorruptedException 并列出抛出异常的一个原因。

参数:
reason - 描述该异常原因的字符串。

StreamCorruptedException

public StreamCorruptedException()
创建一个 StreamCorruptedException,但不列出抛出异常的原因。


JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only