Ignore:
Timestamp:
Apr 27, 2004, 8:39:34 PM (22 years ago)
Author:
bird
Message:

GCC v3.3.3 sources.

Location:
branches/GNU/src/gcc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/gcc

    • Property svn:ignore
      •  

        old new  
        2626configure.vr
        2727configure.vrs
         28
        2829Makefile
        29 dir.info
        3030lost+found
        3131update.out
  • branches/GNU/src/gcc/libjava/java/io/OptionalDataException.java

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1390 r1391  
    1 /* OptionalDataException.java -- indicates unexpected data in serialised stream
    2    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.
    33
    44This file is part of GNU Classpath.
     
    88the Free Software Foundation; either version 2, or (at your option)
    99any later version.
    10  
     10
    1111GNU Classpath is distributed in the hope that it will be useful, but
    1212WITHOUT ANY WARRANTY; without even the implied warranty of
     
    3939package java.io;
    4040
    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
    4356 */
    44 
    45 /**
    46   * This exception is thrown when unexpected data appears in the input
    47   * stream from which a serialized object is being read.  The field
    48   * <code>eof</code> will always be set to true (***Why even have it?***) and
    49   * the <code>count</code> field will contain the number of valid bytes
    50   * available to be read.
    51   *
    52   * @version 0.0
    53   *
    54   * @author Aaron M. Renn ([email protected])
    55   * @author Warren Levy <[email protected]>
    56   * @date February 7, 2000.
    57   */
    5857public class OptionalDataException extends ObjectStreamException
    5958{
     59
     60
     61
     62
    6063
    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;
    6270
    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;
    6677
    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  }
    9791} // class OptionalDataException
    98 
Note: See TracChangeset for help on using the changeset viewer.