/**@class java.io.ObjectStreamConstants Constants written into the Object Serialization Stream. @author unascribed @since JDK 1.1 */ var ObjectStreamConstants = { /** Magic number that is written to the stream header. */ STREAM_MAGIC : "-21267", /** Version number that is written to the stream header. */ STREAM_VERSION : "5", /** First tag value. */ TC_BASE : "112", /** Null object reference. */ TC_NULL : "112", /** Reference to an object already written into the stream. */ TC_REFERENCE : "113", /** new Class Descriptor. */ TC_CLASSDESC : "114", /** new Object. */ TC_OBJECT : "115", /** new String. */ TC_STRING : "116", /** new Array. */ TC_ARRAY : "117", /** Reference to Class. */ TC_CLASS : "118", /** Block of optional data. Byte following tag indicates number of bytes in this block data. */ TC_BLOCKDATA : "119", /** End of optional block data blocks for an object. */ TC_ENDBLOCKDATA : "120", /** Reset stream context. All handles written into stream are reset. */ TC_RESET : "121", /** long Block data. The long following the tag indicates the number of bytes in this block data. */ TC_BLOCKDATALONG : "122", /** Exception during write. */ TC_EXCEPTION : "123", /** Long string. */ TC_LONGSTRING : "124", /** new Proxy Class Descriptor. */ TC_PROXYCLASSDESC : "125", /** new Enum constant. @since 1.5 */ TC_ENUM : "126", /** Last tag value. */ TC_MAX : "126", /** First wire handle to be assigned. */ baseWireHandle : "8257536", /** Bit mask for ObjectStreamClass flag. Indicates a Serializable class defines its own writeObject method. */ SC_WRITE_METHOD : "1", /** Bit mask for ObjectStreamClass flag. Indicates Externalizable data written in Block Data mode. Added for PROTOCOL_VERSION_2. @see #PROTOCOL_VERSION_2 @since 1.2 */ SC_BLOCK_DATA : "8", /** Bit mask for ObjectStreamClass flag. Indicates class is Serializable. */ SC_SERIALIZABLE : "2", /** Bit mask for ObjectStreamClass flag. Indicates class is Externalizable. */ SC_EXTERNALIZABLE : "4", /** Bit mask for ObjectStreamClass flag. Indicates class is an enum type. @since 1.5 */ SC_ENUM : "16", /** Enable substitution of one object for another during serialization/deserialization. @see java.io.ObjectOutputStream#enableReplaceObject(boolean) @see java.io.ObjectInputStream#enableResolveObject(boolean) @since 1.2 */ SUBSTITUTION_PERMISSION : "null", /** Enable overriding of readObject and writeObject. @see java.io.ObjectOutputStream#writeObjectOverride(Object) @see java.io.ObjectInputStream#readObjectOverride() @since 1.2 */ SUBCLASS_IMPLEMENTATION_PERMISSION : "null", /** A Stream Protocol Version. <p> 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. @see java.io.ObjectOutputStream#useProtocolVersion(int) @since 1.2 */ PROTOCOL_VERSION_1 : "1", /** A Stream Protocol Version. <p> 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. @see java.io.ObjectOutputStream#useProtocolVersion(int) @see #SC_BLOCK_DATA @since 1.2 */ PROTOCOL_VERSION_2 : "2", };