Constants written into the Object Serialization Stream.
- Author(s):
- unascribed
- Since:
- JDK 1.1
Magic number that is written to the stream header.
Version number that is written to the stream header.
final static byte TC_NULL = (byte)0x70;
Reference to an object already written into the stream.
final static byte TC_ARRAY = (byte)0x75;
final static byte TC_CLASS = (byte)0x76;
Block of optional data. Byte following tag indicates number
of bytes in this block data.
End of optional block data blocks for an object.
Reset stream context. All handles written into stream are reset.
final static byte TC_RESET = (byte)0x79;
long Block data. The long following the tag indicates the
number of bytes in this block data.
new Proxy Class Descriptor.
final static byte TC_ENUM = (byte)0x7E;
final static byte TC_MAX = (byte)0x7E;
First wire handle to be assigned.
Bit mask for ObjectStreamClass flag. Indicates a Serializable class
defines its own writeObject method.
Bit mask for ObjectStreamClass flag. Indicates Externalizable data
written in Block Data mode.
Added for PROTOCOL_VERSION_2.
Bit mask for ObjectStreamClass flag. Indicates class is Serializable.
Bit mask for ObjectStreamClass flag. Indicates class is Externalizable.
Bit mask for ObjectStreamClass flag. Indicates class is an enum type.
Enable substitution of one object for another during
serialization/deserialization.
Enable overriding of readObject and writeObject.
A Stream Protocol Version.
All externalizable data is written in JDK 1.1 external data
format after calling this method. This version is needed to write
streams containing Externalizable data that can be read by
pre-JDK 1.1.6 JVMs.
A Stream Protocol Version.
This protocol is written by JVM 1.2.
Externalizable data is written in block data mode and is
terminated with TC_ENDBLOCKDATA. Externalizable classdescriptor
flags has SC_BLOCK_DATA enabled. JVM 1.1.6 and greater can
read this format change.
Enables writing a nonSerializable class descriptor into the
stream. The serialVersionUID of a nonSerializable class is
set to 0L.