ObjectStreamConstants
interface ObjectStreamConstants
java.io.ObjectStreamConstants |
Constants written into the Object Serialization Stream.
Summary
Constants | |
---|---|
static Int |
A Stream Protocol Version. |
static Int |
A Stream Protocol Version. |
static Byte |
Bit mask for ObjectStreamClass flag. |
static Byte |
Bit mask for ObjectStreamClass flag. |
static Byte |
Bit mask for ObjectStreamClass flag. |
static Byte |
Bit mask for ObjectStreamClass flag. |
static Byte |
Bit mask for ObjectStreamClass flag. |
static Short |
Magic number that is written to the stream header. |
static Short |
Version number that is written to the stream header. |
static Byte |
new Array. |
static Byte |
First tag value. |
static Byte |
Block of optional data. |
static Byte |
long Block data. |
static Byte |
Reference to Class. |
static Byte |
new Class Descriptor. |
static Byte |
End of optional block data blocks for an object. |
static Byte |
new Enum constant. |
static Byte |
Exception during write. |
static Byte |
Long string. |
static Byte |
Last tag value. |
static Byte |
Null object reference. |
static Byte |
new Object. |
static Byte |
new Proxy Class Descriptor. |
static Byte |
Reference to an object already written into the stream. |
static Byte |
Reset stream context. |
static Byte |
new String. |
static Int |
First wire handle to be assigned. |
Properties | |
---|---|
static SerializablePermission! |
Enable overriding of readObject and writeObject. |
static SerializablePermission! |
Enable substitution of one object for another during serialization/deserialization. |
Constants
PROTOCOL_VERSION_1
static val PROTOCOL_VERSION_1: Int
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.
Value: 1
PROTOCOL_VERSION_2
static val PROTOCOL_VERSION_2: Int
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 class descriptor 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.
Value: 2
SC_BLOCK_DATA
static val SC_BLOCK_DATA: Byte
Bit mask for ObjectStreamClass flag. Indicates Externalizable data written in Block Data mode. Added for PROTOCOL_VERSION_2.
Value: 8
See Also
SC_ENUM
static val SC_ENUM: Byte
Bit mask for ObjectStreamClass flag. Indicates class is an enum type.
Value: 16
SC_EXTERNALIZABLE
static val SC_EXTERNALIZABLE: Byte
Bit mask for ObjectStreamClass flag. Indicates class is Externalizable.
Value: 4
SC_SERIALIZABLE
static val SC_SERIALIZABLE: Byte
Bit mask for ObjectStreamClass flag. Indicates class is Serializable.
Value: 2
SC_WRITE_METHOD
static val SC_WRITE_METHOD: Byte
Bit mask for ObjectStreamClass flag. Indicates a Serializable class defines its own writeObject method.
Value: 1
STREAM_MAGIC
static val STREAM_MAGIC: Short
Magic number that is written to the stream header.
Value: -21267
STREAM_VERSION
static val STREAM_VERSION: Short
Version number that is written to the stream header.
Value: 5
TC_BLOCKDATA
static val TC_BLOCKDATA: Byte
Block of optional data. Byte following tag indicates number of bytes in this block data.
Value: 119
TC_BLOCKDATALONG
static val TC_BLOCKDATALONG: Byte
long Block data. The long following the tag indicates the number of bytes in this block data.
Value: 122
TC_ENDBLOCKDATA
static val TC_ENDBLOCKDATA: Byte
End of optional block data blocks for an object.
Value: 120
TC_PROXYCLASSDESC
static val TC_PROXYCLASSDESC: Byte
new Proxy Class Descriptor.
Value: 125
TC_REFERENCE
static val TC_REFERENCE: Byte
Reference to an object already written into the stream.
Value: 113
TC_RESET
static val TC_RESET: Byte
Reset stream context. All handles written into stream are reset.
Value: 121
baseWireHandle
static val baseWireHandle: Int
First wire handle to be assigned.
Value: 8257536
Properties
SUBCLASS_IMPLEMENTATION_PERMISSION
static val SUBCLASS_IMPLEMENTATION_PERMISSION: SerializablePermission!
Enable overriding of readObject and writeObject.
SUBSTITUTION_PERMISSION
static val SUBSTITUTION_PERMISSION: SerializablePermission!
Enable substitution of one object for another during serialization/deserialization.