25
26 /*
27 * Licensed Materials - Property of IBM
28 * RMI-IIOP v1.0
29 * Copyright IBM Corp. 1998 1999 All Rights Reserved
30 *
31 */
32
33 package com.sun.corba.se.impl.io;
34
35 /**
36 * Unexpected data appeared in an ObjectInputStream trying to read
37 * an Object.
38 * This exception occurs when the stream contains primitive data
39 * instead of the object expected by readObject.
40 * The eof flag in the exception is true to indicate that no more
41 * primitive data is available.
42 * The count field contains the number of bytes available to read.
43 *
44 * @author unascribed
45 * @since JDK1.1
46 */
47 public class OptionalDataException extends java.io.IOException {
48 /*
49 * Create an <code>OptionalDataException</code> with a length.
50 */
51 OptionalDataException(int len) {
52 eof = false;
53 length = len;
54 }
55
56 /*
57 * Create an <code>OptionalDataException</code> signifing no
58 * more primitive data is available.
59 */
60 OptionalDataException(boolean end) {
61 length = 0;
62 eof = end;
63 }
64
65 /**
|
25
26 /*
27 * Licensed Materials - Property of IBM
28 * RMI-IIOP v1.0
29 * Copyright IBM Corp. 1998 1999 All Rights Reserved
30 *
31 */
32
33 package com.sun.corba.se.impl.io;
34
35 /**
36 * Unexpected data appeared in an ObjectInputStream trying to read
37 * an Object.
38 * This exception occurs when the stream contains primitive data
39 * instead of the object expected by readObject.
40 * The eof flag in the exception is true to indicate that no more
41 * primitive data is available.
42 * The count field contains the number of bytes available to read.
43 *
44 * @author unascribed
45 * @since 1.1
46 */
47 public class OptionalDataException extends java.io.IOException {
48 /*
49 * Create an <code>OptionalDataException</code> with a length.
50 */
51 OptionalDataException(int len) {
52 eof = false;
53 length = len;
54 }
55
56 /*
57 * Create an <code>OptionalDataException</code> signifing no
58 * more primitive data is available.
59 */
60 OptionalDataException(boolean end) {
61 length = 0;
62 eof = end;
63 }
64
65 /**
|