public interface ObjectStreamConstants
| Modifier and Type | Field and Description |
|---|---|
static int |
baseWireHandle
Handle for the first object that gets serialized.
|
static int |
PROTOCOL_VERSION_1
Stream protocol version 1.
|
static int |
PROTOCOL_VERSION_2
Stream protocol version 2.
|
static byte |
SC_BLOCK_DATA
Bit mask for the
flag field in ObjectStreamClass. |
static byte |
SC_ENUM
Bit mask for the
flag field in ObjectStreamClass. |
static byte |
SC_EXTERNALIZABLE
Bit mask for the
flag field in ObjectStreamClass. |
static byte |
SC_SERIALIZABLE
Bit mask for the
flag field in ObjectStreamClass. |
static byte |
SC_WRITE_METHOD
Bit mask for the
flag field in ObjectStreamClass. |
static short |
STREAM_MAGIC
The stream header's magic number.
|
static short |
STREAM_VERSION
The stream header's version number.
|
static SerializablePermission |
SUBCLASS_IMPLEMENTATION_PERMISSION
Permission constant to enable subclassing of ObjectInputStream and
ObjectOutputStream.
|
static SerializablePermission |
SUBSTITUTION_PERMISSION
Permission constant to enable object substitution during serialization
and deserialization.
|
static byte |
TC_ARRAY
Tag to mark a new array.
|
static byte |
TC_BASE
The minimum tag value.
|
static byte |
TC_BLOCKDATA
Tag to mark a block of optional data.
|
static byte |
TC_BLOCKDATALONG
Tag to mark a long block of data.
|
static byte |
TC_CLASS
Tag to mark a reference to a class.
|
static byte |
TC_CLASSDESC
Tag to mark a new class descriptor.
|
static byte |
TC_ENDBLOCKDATA
Tag to mark the end of block data blocks for an object.
|
static byte |
TC_ENUM
Tag to mark a new enum.
|
static byte |
TC_EXCEPTION
Tag to mark an exception.
|
static byte |
TC_LONGSTRING
Tag to mark a long string.
|
static byte |
TC_MAX
The maximum tag value.
|
static byte |
TC_NULL
Tag to mark a
null object reference. |
static byte |
TC_OBJECT
Tag to mark a new object.
|
static byte |
TC_PROXYCLASSDESC
Tag to mark a new proxy class descriptor.
|
static byte |
TC_REFERENCE
Tag to mark a reference to an object that has already been written to the
stream.
|
static byte |
TC_RESET
Tag to mark a stream reset.
|
static byte |
TC_STRING
Tag to mark a new string.
|
static final short STREAM_MAGIC
static final short STREAM_VERSION
static final byte TC_BASE
static final byte TC_NULL
null object reference.static final byte TC_REFERENCE
static final byte TC_CLASSDESC
static final byte TC_OBJECT
static final byte TC_STRING
static final byte TC_ARRAY
static final byte TC_CLASS
static final byte TC_BLOCKDATA
static final byte TC_ENDBLOCKDATA
static final byte TC_RESET
static final byte TC_BLOCKDATALONG
static final byte TC_EXCEPTION
static final byte TC_LONGSTRING
static final byte TC_PROXYCLASSDESC
static final byte TC_MAX
static final int baseWireHandle
static final int PROTOCOL_VERSION_1
static final int PROTOCOL_VERSION_2
static final SerializablePermission SUBCLASS_IMPLEMENTATION_PERMISSION
static final SerializablePermission SUBSTITUTION_PERMISSION
static final byte SC_WRITE_METHOD
flag field in ObjectStreamClass. Indicates
that a Serializable class has its own writeObject method.static final byte SC_SERIALIZABLE
flag field in ObjectStreamClass. Indicates
that a class implements Serializable but not Externalizable.static final byte SC_EXTERNALIZABLE
static final byte SC_BLOCK_DATA
flag field in ObjectStreamClass. Indicates
that an externalizable class is written in block data mode.static final byte TC_ENUM
static final byte SC_ENUM
flag field in ObjectStreamClass. Indicates
that a class is an enum type.