Skip to content

Most visited

Recently visited

navigation
Added in API level 1

ObjectStreamConstants

public interface ObjectStreamConstants

java.io.ObjectStreamConstants
Known Indirect Subclasses


A helper interface with constants used by the serialization implementation.

Summary

Constants

int PROTOCOL_VERSION_1

Stream protocol version 1.

int PROTOCOL_VERSION_2

Stream protocol version 2.

byte SC_BLOCK_DATA

Bit mask for the flag field in ObjectStreamClass.

byte SC_ENUM

Bit mask for the flag field in ObjectStreamClass.

byte SC_EXTERNALIZABLE

Bit mask for the flag field in ObjectStreamClass.

byte SC_SERIALIZABLE

Bit mask for the flag field in ObjectStreamClass.

byte SC_WRITE_METHOD

Bit mask for the flag field in ObjectStreamClass.

short STREAM_MAGIC

The stream header's magic number.

short STREAM_VERSION

The stream header's version number.

byte TC_ARRAY

Tag to mark a new array.

byte TC_BASE

The minimum tag value.

byte TC_BLOCKDATA

Tag to mark a block of optional data.

byte TC_BLOCKDATALONG

Tag to mark a long block of data.

byte TC_CLASS

Tag to mark a reference to a class.

byte TC_CLASSDESC

Tag to mark a new class descriptor.

byte TC_ENDBLOCKDATA

Tag to mark the end of block data blocks for an object.

byte TC_ENUM

Tag to mark a new enum.

byte TC_EXCEPTION

Tag to mark an exception.

byte TC_LONGSTRING

Tag to mark a long string.

byte TC_MAX

The maximum tag value.

byte TC_NULL

Tag to mark a null object reference.

byte TC_OBJECT

Tag to mark a new object.

byte TC_PROXYCLASSDESC

Tag to mark a new proxy class descriptor.

byte TC_REFERENCE

Tag to mark a reference to an object that has already been written to the stream.

byte TC_RESET

Tag to mark a stream reset.

byte TC_STRING

Tag to mark a new string.

int baseWireHandle

Handle for the first object that gets serialized.

Fields

public static final SerializablePermission SUBCLASS_IMPLEMENTATION_PERMISSION

Permission constant to enable subclassing of ObjectInputStream and ObjectOutputStream.

public static final SerializablePermission SUBSTITUTION_PERMISSION

Permission constant to enable object substitution during serialization and deserialization.

Constants

PROTOCOL_VERSION_1

Added in API level 1
int PROTOCOL_VERSION_1

Stream protocol version 1.

Constant Value: 1 (0x00000001)

PROTOCOL_VERSION_2

Added in API level 1
int PROTOCOL_VERSION_2

Stream protocol version 2.

Constant Value: 2 (0x00000002)

SC_BLOCK_DATA

Added in API level 1
byte SC_BLOCK_DATA

Bit mask for the flag field in ObjectStreamClass. Indicates that an externalizable class is written in block data mode.

Constant Value: 8 (0x00000008)

SC_ENUM

Added in API level 1
byte SC_ENUM

Bit mask for the flag field in ObjectStreamClass. Indicates that a class is an enum type.

Constant Value: 16 (0x00000010)

SC_EXTERNALIZABLE

Added in API level 1
byte SC_EXTERNALIZABLE

Bit mask for the flag field in ObjectStreamClass. Indicates that a class implements Externalizable.

Constant Value: 4 (0x00000004)

SC_SERIALIZABLE

Added in API level 1
byte SC_SERIALIZABLE

Bit mask for the flag field in ObjectStreamClass. Indicates that a class implements Serializable but not Externalizable.

Constant Value: 2 (0x00000002)

SC_WRITE_METHOD

Added in API level 1
byte SC_WRITE_METHOD

Bit mask for the flag field in ObjectStreamClass. Indicates that a Serializable class has its own writeObject method.

Constant Value: 1 (0x00000001)

STREAM_MAGIC

Added in API level 1
short STREAM_MAGIC

The stream header's magic number.

Constant Value: -21267 (0xffffaced)

STREAM_VERSION

Added in API level 1
short STREAM_VERSION

The stream header's version number.

Constant Value: 5 (0x00000005)

TC_ARRAY

Added in API level 1
byte TC_ARRAY

Tag to mark a new array.

Constant Value: 117 (0x00000075)

TC_BASE

Added in API level 1
byte TC_BASE

The minimum tag value.

Constant Value: 112 (0x00000070)

TC_BLOCKDATA

Added in API level 1
byte TC_BLOCKDATA

Tag to mark a block of optional data. The byte following this tag indicates the size of the block.

Constant Value: 119 (0x00000077)

TC_BLOCKDATALONG

Added in API level 1
byte TC_BLOCKDATALONG

Tag to mark a long block of data. The long following this tag indicates the size of the block.

Constant Value: 122 (0x0000007a)

TC_CLASS

Added in API level 1
byte TC_CLASS

Tag to mark a reference to a class.

Constant Value: 118 (0x00000076)

TC_CLASSDESC

Added in API level 1
byte TC_CLASSDESC

Tag to mark a new class descriptor.

Constant Value: 114 (0x00000072)

TC_ENDBLOCKDATA

Added in API level 1
byte TC_ENDBLOCKDATA

Tag to mark the end of block data blocks for an object.

Constant Value: 120 (0x00000078)

TC_ENUM

Added in API level 1
byte TC_ENUM

Tag to mark a new enum.

Constant Value: 126 (0x0000007e)

TC_EXCEPTION

Added in API level 1
byte TC_EXCEPTION

Tag to mark an exception.

Constant Value: 123 (0x0000007b)

TC_LONGSTRING

Added in API level 1
byte TC_LONGSTRING

Tag to mark a long string.

Constant Value: 124 (0x0000007c)

TC_MAX

Added in API level 1
byte TC_MAX

The maximum tag value.

Constant Value: 126 (0x0000007e)

TC_NULL

Added in API level 1
byte TC_NULL

Tag to mark a null object reference.

Constant Value: 112 (0x00000070)

TC_OBJECT

Added in API level 1
byte TC_OBJECT

Tag to mark a new object.

Constant Value: 115 (0x00000073)

TC_PROXYCLASSDESC

Added in API level 1
byte TC_PROXYCLASSDESC

Tag to mark a new proxy class descriptor.

Constant Value: 125 (0x0000007d)

TC_REFERENCE

Added in API level 1
byte TC_REFERENCE

Tag to mark a reference to an object that has already been written to the stream.

Constant Value: 113 (0x00000071)

TC_RESET

Added in API level 1
byte TC_RESET

Tag to mark a stream reset.

Constant Value: 121 (0x00000079)

TC_STRING

Added in API level 1
byte TC_STRING

Tag to mark a new string.

Constant Value: 116 (0x00000074)

baseWireHandle

Added in API level 1
int baseWireHandle

Handle for the first object that gets serialized.

Constant Value: 8257536 (0x007e0000)

Fields

SUBCLASS_IMPLEMENTATION_PERMISSION

Added in API level 1
SerializablePermission SUBCLASS_IMPLEMENTATION_PERMISSION

Permission constant to enable subclassing of ObjectInputStream and ObjectOutputStream.

SUBSTITUTION_PERMISSION

Added in API level 1
SerializablePermission SUBSTITUTION_PERMISSION

Permission constant to enable object substitution during serialization and deserialization.

This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.