Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4139262

java.io.ObjectInputStream needs skipObject()

XMLWordPrintable



      Name: tb29552 Date: 05/16/98


      One can use readObject() to skip an object in the stream,
      but a skipObject() method could be much more efficient by
      not allocating space for objects.

      This is not something one can do in a subclass because all of
      the key methods one needs are private.

      ###@###.###
      (Review ID: 30128)
      ======================================================================

      Further any future attempt to deserialize a reference to the skipped object
      either directly or indirectly, must throw a suitable exception.

      naveen.sanjeeva@eng 2000-03-08

            nsanjeevsunw Naveen Sanjeeva (Inactive)
            tbell Tim Bell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: