- Timestamp:
- Apr 27, 2004, 8:39:34 PM (22 years ago)
- Location:
- branches/GNU/src/gcc
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
libjava/java/io/OptionalDataException.java (modified) (3 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/gcc
- Property svn:ignore
-
old new 26 26 configure.vr 27 27 configure.vrs 28 28 29 Makefile 29 dir.info30 30 lost+found 31 31 update.out
-
- Property svn:ignore
-
branches/GNU/src/gcc/libjava/java/io/OptionalDataException.java
-
Property cvs2svn:cvs-rev
changed from
1.1to1.1.1.2
r1390 r1391 1 /* OptionalDataException.java -- indicates unexpected data in seriali sed stream2 Copyright (C) 1998, 2000, 2001 Free Software Foundation, Inc.1 /* OptionalDataException.java -- indicates unexpected data in serialied stream 2 Copyright (C) 1998, 2000, 2001 Free Software Foundation, Inc. 3 3 4 4 This file is part of GNU Classpath. … … 8 8 the Free Software Foundation; either version 2, or (at your option) 9 9 any later version. 10 10 11 11 GNU Classpath is distributed in the hope that it will be useful, but 12 12 WITHOUT ANY WARRANTY; without even the implied warranty of … … 39 39 package java.io; 40 40 41 /* Written using on-line Java Platform 1.2 API Specification. 42 * Status: Believed complete and correct. 41 /** 42 * This exception is thrown when unexpected data appears in the input 43 * stream from which a serialized object is being read. There are two 44 * cases:<br><ul> 45 * <li>The next stream element is primitive data. <code>eof</code> will 46 * be false, and <code>count</code> is the number of bytes of primitive 47 * data available.</li> 48 * <li>The data consumable by readObject or readExternal has been exhausted. 49 * <code>eof</code> is true, and <code>count</code> is 0.</li> 50 * </ul> 51 * 52 * @author Aaron M. Renn ([email protected]) 53 * @author Warren Levy <[email protected]> 54 * @since 1.1 55 * @status updated to 1.4 43 56 */ 44 45 /**46 * This exception is thrown when unexpected data appears in the input47 * stream from which a serialized object is being read. The field48 * <code>eof</code> will always be set to true (***Why even have it?***) and49 * the <code>count</code> field will contain the number of valid bytes50 * available to be read.51 *52 * @version 0.053 *54 * @author Aaron M. Renn ([email protected])55 * @author Warren Levy <[email protected]>56 * @date February 7, 2000.57 */58 57 public class OptionalDataException extends ObjectStreamException 59 58 { 59 60 61 62 60 63 61 private static final long serialVersionUID = -8011121865681257820L; 64 /** 65 * Whether or not the end of the stream has been reached. 66 * 67 * @serial the end of the buffer was reached 68 */ 69 public boolean eof; 62 70 63 /* 64 * Instance Variables 65 */ 71 /** 72 * The number of valid bytes that can be read. 73 * 74 * @serial the bytes of the buffer remaining 75 */ 76 public int length; 66 77 67 /** 68 * Whether or not the end of the stream has been reached 69 */ 70 public boolean eof; 71 72 /** 73 * The number of valid bytes that can be read 74 */ 75 public int length; 76 77 /*************************************************************************/ 78 79 /* 80 * Constructors 81 */ 82 83 /** 84 * Create a new OptionalDataException with an eof parameter indicating 85 * whether or not the end of stream is reached and the number of valid 86 * bytes that may be read. 87 * 88 * @param eof 'true' if end of stream reached, 'false' otherwise 89 * @param count The number of valid bytes to be read. 90 */ 91 OptionalDataException(boolean eof, int count) 92 { 93 this.eof = eof; 94 this.length = count; 95 } 96 78 /** 79 * Create a new OptionalDataException with an eof parameter indicating 80 * whether or not the end of stream is reached and the number of valid 81 * bytes that may be read. 82 * 83 * @param eof 'true' if end of stream reached, 'false' otherwise 84 * @param count The number of valid bytes to be read 85 */ 86 OptionalDataException(boolean eof, int count) 87 { 88 this.eof = eof; 89 this.length = count; 90 } 97 91 } // class OptionalDataException 98 -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.
