Source Home >> Java Source 1.6.0 >> java.io.StreamCorruptedException V 0.09
  • 01/*
  • 02 * @(#)StreamCorruptedException.java 1.17 05/11/17
  • 03 *
  • 04 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
  • 05 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  • 06 */
  • 07
  • 08package java.io;
  • 09
  • 10/**
  • 11 * Thrown when control information that was read from an object stream
  • 12 * violates internal consistency checks.
  • 13 *
  • 14 * @author unascribed
  • 15 * @version 1.17, 11/17/05
  • 16 * @since JDK1.1
  • 17 */
  • 18public class StreamCorruptedException extends ObjectStreamException {
  • 19
  • 20 private static final long serialVersionUID = 8983558202217591746L;
  • 21
  • 22 /**
  • 23 * Create a StreamCorruptedException and list a reason why thrown.
  • 24 *
  • 25 * @param reason String describing the reason for the exception.
  • 26 */
  • 27 public StreamCorruptedException(String reason) {
  • 28 super(reason);
  • 29 }
  • 30
  • 31 /**
  • 32 * Create a StreamCorruptedException and list no reason why thrown.
  • 33 */
  • 34 public StreamCorruptedException() {
  • 35 super();
  • 36 }
  • 37}

文件:StreamCorruptedException.java
包名:java.io
类名:StreamCorruptedException
继承:ObjectStreamException
接口: