| CONTENTS | PREV | NEXT | Java Object Serialization Specification version 6.0 |
May 12, 2005 Updates for JavaTM SE Development Kit, v6 Beta 1
readResolve
invocation for an unshared read is handled.serialPersistentFields
value.serialVersionUID matching is waived for array
classes.IllegalArgumentException is thrown by
ObjectOutputStream.PutFields methods.July 24, 2003 Updates for JavaTM 2 SDK, Standard Edition, v1.5 Beta 1
serialVersionUID values to Section 4.6, "Stream Unique
Identifiers".Aug. 16, 2001 Updates for JavaTM 2 SDK, Standard Edition, v1.4 Beta 2
readObjectNoData methods, to be used for
initializing serializable class fields in cases not covered by
class-defined readObject methods. See Section 3.5, "The readObjectNoData
Method", as well as Appendix A, "Security in Object
Serialization".ObjectOutputStream.writeUnshared and
ObjectInputStream.readUnshared provide a mechanism for
ensuring unique references to deserialized objects. See Section 2.1, "The ObjectOutputStream
Class", Section 3.1,
"The ObjectInputStream Class", as well as Appendix A,
"Security in Object Serialization".ObjectOutputStream and ObjectInputStream.
See Section 2.1, "The
ObjectOutputStream Class" and Section 3.1, "The ObjectInputStream
Class".writeObject methods invoke
ObjectOutputStream.defaultWriteObject or
writeFields once before writing optional data, and
that class-defined readObject methods invoke
ObjectInputStream.defaultReadObject or
readFields once before reading optional data. See
Section 2.3, "The writeObject
Method" and Section 3.4,
"The readObject Method".ObjectInputStream when class-defined
readObject or readExternal methods
attempt read operations which exceed the bounds of available data;
see Section 3.4, "The
readObject Method" and Section 3.6, "The readExternal
Method".July 30, 1999 Updates for JavaTM 2 SDK, Standard Edition, v1.3 Beta
String objects for which the UTF encoding is
longer than 65535 bytes in length. See Section 6.2, "Stream
Elements".ObjectOutputStream.writeClassDescriptor and
ObjectInputStream.readClassDescriptor provide a means
of customizing the serialized representation of
ObjectStreamClass class descriptors. See Section 2.1, "The ObjectOutputStream
Class" and Section 3.1,
"The ObjectInputStream Class".Sept. 30, 1998 Updates for JDKTM 1.2 Beta4 RC1
June 22, 1998 Updates for JDKTM 1.2 Beta4
java.io interfaces,
Replaceable and Resolvable.References to
either of these classes as an interface should be replaced with
java.io.Serializable. Serialization will use
reflection to invoke the methods, writeReplace and
readResolve, if the Serializable class defines these
methods. See Section 2.5, "The
writeReplace Method" and Section 3.7, "The readResolve
Method."serialPersistentFields, must be declared
private. See Section 1.5,
"Defining Serializable Fields for a Class."serialVersionUID in Section 4.6, "Stream Unique
Identifiers."Feb. 6, 1998 Updates for JDKTM 1.2 Beta 3
STREAM_PROTOCOL_2 version to indicate a new format for
Externalizable objects that enable skipping by an
Externalizable object within the stream, even when the
object's class is not available in the local Virtual Machine.
Compatibility issues are discussed in Section 6.3, "Stream Protocol
Versions."The
ObjectInputStream.resolveClass method can return a local
class in a different package than the name of the class within the
stream. This capability enables renaming of packages between
releases. The serialVersionUID and the base class name
must be the same in the stream and in the local version of the
class. See Section 3.1, "The
ObjectInputStream Class."String or array objects when writing them
to or reading them from the stream. See Section 2.1, "The ObjectOutputStream
Class" and Section 3.1,
"The ObjectInputStream Class."Sept. 4, 1997 Updates for JDKTM 1.2 Beta1
SerializablePermission
"enableSubstitution" within the
ObjectInputStream.enableReplace and
ObjectOutputStream.enableResolve methods. See Section 2.1, "The ObjectOutputStream
Class" and Section 3.1,
"The ObjectInputStream Class."writeObject's exception handler to write handled
IOExceptions into the stream. See Section 2.1, "The ObjectOutputStream
Class."July 3, 1997 Updates for JDKTM 1.2 Alpha