Package java.io
Interface ObjectStreamConstants
- All Known Implementing Classes:
ObjectInputStream,ObjectOutputStream
public interface ObjectStreamConstants
A helper interface with constants used by the serialization implementation.
-
Field Summary
Fields Modifier and Type Field Description static intbaseWireHandleHandle for the first object that gets serialized.static intPROTOCOL_VERSION_1Stream protocol version 1.static intPROTOCOL_VERSION_2Stream protocol version 2.static byteSC_BLOCK_DATABit mask for theflagfield in ObjectStreamClass.static byteSC_ENUMBit mask for theflagfield in ObjectStreamClass.static byteSC_EXTERNALIZABLEBit mask for theflagfield in ObjectStreamClass.static byteSC_SERIALIZABLEBit mask for theflagfield in ObjectStreamClass.static byteSC_WRITE_METHODBit mask for theflagfield in ObjectStreamClass.static shortSTREAM_MAGICThe stream header's magic number.static shortSTREAM_VERSIONThe stream header's version number.static SerializablePermissionSUBCLASS_IMPLEMENTATION_PERMISSIONPermission constant to enable subclassing of ObjectInputStream and ObjectOutputStream.static SerializablePermissionSUBSTITUTION_PERMISSIONPermission constant to enable object substitution during serialization and deserialization.static byteTC_ARRAYTag to mark a new array.static byteTC_BASEThe minimum tag value.static byteTC_BLOCKDATATag to mark a block of optional data.static byteTC_BLOCKDATALONGTag to mark a long block of data.static byteTC_CLASSTag to mark a reference to a class.static byteTC_CLASSDESCTag to mark a new class descriptor.static byteTC_ENDBLOCKDATATag to mark the end of block data blocks for an object.static byteTC_ENUMTag to mark a new enum.static byteTC_EXCEPTIONTag to mark an exception.static byteTC_LONGSTRINGTag to mark a long string.static byteTC_MAXThe maximum tag value.static byteTC_NULLTag to mark anullobject reference.static byteTC_OBJECTTag to mark a new object.static byteTC_PROXYCLASSDESCTag to mark a new proxy class descriptor.static byteTC_REFERENCETag to mark a reference to an object that has already been written to the stream.static byteTC_RESETTag to mark a stream reset.static byteTC_STRINGTag to mark a new string.
-
Field Details
-
STREAM_MAGIC
static final short STREAM_MAGICThe stream header's magic number.- See Also:
- Constant Field Values
-
STREAM_VERSION
static final short STREAM_VERSIONThe stream header's version number.- See Also:
- Constant Field Values
-
TC_BASE
static final byte TC_BASEThe minimum tag value.- See Also:
- Constant Field Values
-
TC_NULL
static final byte TC_NULLTag to mark anullobject reference.- See Also:
- Constant Field Values
-
TC_REFERENCE
static final byte TC_REFERENCETag to mark a reference to an object that has already been written to the stream.- See Also:
- Constant Field Values
-
TC_CLASSDESC
static final byte TC_CLASSDESCTag to mark a new class descriptor.- See Also:
- Constant Field Values
-
TC_OBJECT
static final byte TC_OBJECTTag to mark a new object.- See Also:
- Constant Field Values
-
TC_STRING
static final byte TC_STRINGTag to mark a new string.- See Also:
- Constant Field Values
-
TC_ARRAY
static final byte TC_ARRAYTag to mark a new array.- See Also:
- Constant Field Values
-
TC_CLASS
static final byte TC_CLASSTag to mark a reference to a class.- See Also:
- Constant Field Values
-
TC_BLOCKDATA
static final byte TC_BLOCKDATATag to mark a block of optional data. The byte following this tag indicates the size of the block.- See Also:
- Constant Field Values
-
TC_ENDBLOCKDATA
static final byte TC_ENDBLOCKDATATag to mark the end of block data blocks for an object.- See Also:
- Constant Field Values
-
TC_RESET
static final byte TC_RESETTag to mark a stream reset.- See Also:
- Constant Field Values
-
TC_BLOCKDATALONG
static final byte TC_BLOCKDATALONGTag to mark a long block of data. The long following this tag indicates the size of the block.- See Also:
- Constant Field Values
-
TC_EXCEPTION
static final byte TC_EXCEPTIONTag to mark an exception.- See Also:
- Constant Field Values
-
TC_LONGSTRING
static final byte TC_LONGSTRINGTag to mark a long string.- See Also:
- Constant Field Values
-
TC_PROXYCLASSDESC
static final byte TC_PROXYCLASSDESCTag to mark a new proxy class descriptor.- See Also:
- Constant Field Values
-
TC_MAX
static final byte TC_MAXThe maximum tag value.- See Also:
- Constant Field Values
-
baseWireHandle
static final int baseWireHandleHandle for the first object that gets serialized.- See Also:
- Constant Field Values
-
PROTOCOL_VERSION_1
static final int PROTOCOL_VERSION_1Stream protocol version 1.- See Also:
- Constant Field Values
-
PROTOCOL_VERSION_2
static final int PROTOCOL_VERSION_2Stream protocol version 2.- See Also:
- Constant Field Values
-
SUBCLASS_IMPLEMENTATION_PERMISSION
Permission constant to enable subclassing of ObjectInputStream and ObjectOutputStream. -
SUBSTITUTION_PERMISSION
Permission constant to enable object substitution during serialization and deserialization. -
SC_WRITE_METHOD
static final byte SC_WRITE_METHODBit mask for theflagfield in ObjectStreamClass. Indicates that a serializable class has its ownwriteObjectmethod.- See Also:
- Constant Field Values
-
SC_SERIALIZABLE
static final byte SC_SERIALIZABLEBit mask for theflagfield in ObjectStreamClass. Indicates that a class is serializable.- See Also:
- Constant Field Values
-
SC_EXTERNALIZABLE
static final byte SC_EXTERNALIZABLEBit mask for theflagfield in ObjectStreamClass. Indicates that a class is externalizable.- See Also:
- Constant Field Values
-
SC_BLOCK_DATA
static final byte SC_BLOCK_DATABit mask for theflagfield in ObjectStreamClass. Indicates that an externalizable class is written in block data mode.- See Also:
- Constant Field Values
-
TC_ENUM
static final byte TC_ENUMTag to mark a new enum.- See Also:
- Constant Field Values
-
SC_ENUM
static final byte SC_ENUMBit mask for theflagfield in ObjectStreamClass. Indicates that a class is an enum type.- See Also:
- Constant Field Values
-