- All Known Implementing Classes:
- ObjectInputStream,- ObjectOutputStream
public interface ObjectStreamConstants
Constants written into the Object Serialization Stream.
- Since:
- 1.1
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intFirst wire handle to be assigned.static final intA Stream Protocol Version.static final intA Stream Protocol Version.static final byteBit mask for ObjectStreamClass flag.static final byteBit mask for ObjectStreamClass flag.static final byteBit mask for ObjectStreamClass flag.static final byteBit mask for ObjectStreamClass flag.static final byteBit mask for ObjectStreamClass flag.static final SerializablePermissionEnable setting the system-wide serial filter.static final shortMagic number that is written to the stream header.static final shortVersion number that is written to the stream header.static final SerializablePermissionEnable overriding of readObject and writeObject.static final SerializablePermissionEnable substitution of one object for another during serialization/deserialization.static final bytenew Array.static final byteFirst tag value.static final byteBlock of optional data.static final bytelong Block data.static final byteReference to Class.static final bytenew Class Descriptor.static final byteEnd of optional block data blocks for an object.static final bytenew Enum constant.static final byteException during write.static final byteLong string.static final byteLast tag value.static final byteNull object reference.static final bytenew Object.static final bytenew Proxy Class Descriptor.static final byteReference to an object already written into the stream.static final byteReset stream context.static final bytenew String.
- 
Field Details- 
STREAM_MAGICstatic final short STREAM_MAGICMagic number that is written to the stream header.- See Also:
 
- 
STREAM_VERSIONstatic final short STREAM_VERSIONVersion number that is written to the stream header.- See Also:
 
- 
TC_BASEstatic final byte TC_BASEFirst tag value.- See Also:
 
- 
TC_NULLstatic final byte TC_NULLNull object reference.- See Also:
 
- 
TC_REFERENCEstatic final byte TC_REFERENCEReference to an object already written into the stream.- See Also:
 
- 
TC_CLASSDESCstatic final byte TC_CLASSDESCnew Class Descriptor.- See Also:
 
- 
TC_OBJECTstatic final byte TC_OBJECTnew Object.- See Also:
 
- 
TC_STRINGstatic final byte TC_STRINGnew String.- See Also:
 
- 
TC_ARRAYstatic final byte TC_ARRAYnew Array.- See Also:
 
- 
TC_CLASSstatic final byte TC_CLASSReference to Class.- See Also:
 
- 
TC_BLOCKDATAstatic final byte TC_BLOCKDATABlock of optional data. Byte following tag indicates number of bytes in this block data.- See Also:
 
- 
TC_ENDBLOCKDATAstatic final byte TC_ENDBLOCKDATAEnd of optional block data blocks for an object.- See Also:
 
- 
TC_RESETstatic final byte TC_RESETReset stream context. All handles written into stream are reset.- See Also:
 
- 
TC_BLOCKDATALONGstatic final byte TC_BLOCKDATALONGlong Block data. The long following the tag indicates the number of bytes in this block data.- See Also:
 
- 
TC_EXCEPTIONstatic final byte TC_EXCEPTIONException during write.- See Also:
 
- 
TC_LONGSTRINGstatic final byte TC_LONGSTRINGLong string.- See Also:
 
- 
TC_PROXYCLASSDESCstatic final byte TC_PROXYCLASSDESCnew Proxy Class Descriptor.- See Also:
 
- 
TC_ENUMstatic final byte TC_ENUMnew Enum constant.- Since:
- 1.5
- See Also:
 
- 
TC_MAXstatic final byte TC_MAXLast tag value.- See Also:
 
- 
baseWireHandlestatic final int baseWireHandleFirst wire handle to be assigned.- See Also:
 
- 
SC_WRITE_METHODstatic final byte SC_WRITE_METHODBit mask for ObjectStreamClass flag. Indicates a Serializable class defines its own writeObject method.- See Also:
 
- 
SC_BLOCK_DATAstatic final byte SC_BLOCK_DATABit mask for ObjectStreamClass flag. Indicates Externalizable data written in Block Data mode. Added for PROTOCOL_VERSION_2.- Since:
- 1.2
- See Also:
 
- 
SC_SERIALIZABLEstatic final byte SC_SERIALIZABLEBit mask for ObjectStreamClass flag. Indicates class is Serializable.- See Also:
 
- 
SC_EXTERNALIZABLEstatic final byte SC_EXTERNALIZABLEBit mask for ObjectStreamClass flag. Indicates class is Externalizable.- See Also:
 
- 
SC_ENUMstatic final byte SC_ENUMBit mask for ObjectStreamClass flag. Indicates class is an enum type.- Since:
- 1.5
- See Also:
 
- 
SUBSTITUTION_PERMISSIONEnable substitution of one object for another during serialization/deserialization.- Since:
- 1.2
- See Also:
 
- 
SUBCLASS_IMPLEMENTATION_PERMISSIONEnable overriding of readObject and writeObject.- Since:
- 1.2
- See Also:
 
- 
SERIAL_FILTER_PERMISSIONEnable setting the system-wide serial filter.- Since:
- 9
- See Also:
 
- 
PROTOCOL_VERSION_1static final int PROTOCOL_VERSION_1A 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. - Since:
- 1.2
- See Also:
 
- 
PROTOCOL_VERSION_2static final int PROTOCOL_VERSION_2A 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. - Since:
- 1.2
- See Also:
 
 
-