Package java.io
Interface ObjectStreamConstants
-
- All Known Implementing Classes:
ObjectInputStream,ObjectOutputStream
public interface ObjectStreamConstantsA 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 inObjectStreamClass.static byteSC_ENUMBit mask for theflagfield inObjectStreamClass.static byteSC_EXTERNALIZABLEBit mask for theflagfield inObjectStreamClass.static byteSC_SERIALIZABLEBit mask for theflagfield inObjectStreamClass.static byteSC_WRITE_METHODBit mask for theflagfield inObjectStreamClass.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 Detail
-
STREAM_MAGIC
static final short STREAM_MAGIC
The stream header's magic number.- See Also:
- Constant Field Values
-
STREAM_VERSION
static final short STREAM_VERSION
The stream header's version number.- See Also:
- Constant Field Values
-
TC_BASE
static final byte TC_BASE
The minimum tag value.- See Also:
- Constant Field Values
-
TC_NULL
static final byte TC_NULL
Tag to mark anullobject reference.- See Also:
- Constant Field Values
-
TC_REFERENCE
static final byte TC_REFERENCE
Tag 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_CLASSDESC
Tag to mark a new class descriptor.- See Also:
- Constant Field Values
-
TC_OBJECT
static final byte TC_OBJECT
Tag to mark a new object.- See Also:
- Constant Field Values
-
TC_STRING
static final byte TC_STRING
Tag to mark a new string.- See Also:
- Constant Field Values
-
TC_ARRAY
static final byte TC_ARRAY
Tag to mark a new array.- See Also:
- Constant Field Values
-
TC_CLASS
static final byte TC_CLASS
Tag to mark a reference to a class.- See Also:
- Constant Field Values
-
TC_BLOCKDATA
static final byte TC_BLOCKDATA
Tag 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_ENDBLOCKDATA
Tag to mark the end of block data blocks for an object.- See Also:
- Constant Field Values
-
TC_RESET
static final byte TC_RESET
Tag to mark a stream reset.- See Also:
- Constant Field Values
-
TC_BLOCKDATALONG
static final byte TC_BLOCKDATALONG
Tag 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_EXCEPTION
Tag to mark an exception.- See Also:
- Constant Field Values
-
TC_LONGSTRING
static final byte TC_LONGSTRING
Tag to mark a long string.- See Also:
- Constant Field Values
-
TC_PROXYCLASSDESC
static final byte TC_PROXYCLASSDESC
Tag to mark a new proxy class descriptor.- See Also:
- Constant Field Values
-
TC_MAX
static final byte TC_MAX
The maximum tag value.- See Also:
- Constant Field Values
-
baseWireHandle
static final int baseWireHandle
Handle for the first object that gets serialized.- See Also:
- Constant Field Values
-
PROTOCOL_VERSION_1
static final int PROTOCOL_VERSION_1
Stream protocol version 1.- See Also:
- Constant Field Values
-
PROTOCOL_VERSION_2
static final int PROTOCOL_VERSION_2
Stream protocol version 2.- See Also:
- Constant Field Values
-
SUBCLASS_IMPLEMENTATION_PERMISSION
static final SerializablePermission SUBCLASS_IMPLEMENTATION_PERMISSION
Permission constant to enable subclassing of ObjectInputStream and ObjectOutputStream.
-
SUBSTITUTION_PERMISSION
static final SerializablePermission SUBSTITUTION_PERMISSION
Permission constant to enable object substitution during serialization and deserialization.
-
SC_WRITE_METHOD
static final byte SC_WRITE_METHOD
Bit mask for theflagfield inObjectStreamClass. Indicates that aSerializableclass has its ownwriteObjectmethod.- See Also:
- Constant Field Values
-
SC_SERIALIZABLE
static final byte SC_SERIALIZABLE
Bit mask for theflagfield inObjectStreamClass. Indicates that a class implementsSerializablebut notExternalizable.- See Also:
- Constant Field Values
-
SC_EXTERNALIZABLE
static final byte SC_EXTERNALIZABLE
- See Also:
- Constant Field Values
-
SC_BLOCK_DATA
static final byte SC_BLOCK_DATA
Bit mask for theflagfield inObjectStreamClass. Indicates that an externalizable class is written in block data mode.- See Also:
- Constant Field Values
-
TC_ENUM
static final byte TC_ENUM
Tag to mark a new enum.- See Also:
- Constant Field Values
-
SC_ENUM
static final byte SC_ENUM
Bit mask for theflagfield inObjectStreamClass. Indicates that a class is an enum type.- See Also:
- Constant Field Values
-
-