Added in API level 1

ObjectStreamConstants

interface ObjectStreamConstants
java.io.ObjectStreamConstants

Constants written into the Object Serialization Stream.

Summary

Constants
static Int

A Stream Protocol Version.

static Int

A Stream Protocol Version.

static Byte

Bit mask for ObjectStreamClass flag.

static Byte

Bit mask for ObjectStreamClass flag.

static Byte

Bit mask for ObjectStreamClass flag.

static Byte

Bit mask for ObjectStreamClass flag.

static Byte

Bit mask for ObjectStreamClass flag.

static Short

Magic number that is written to the stream header.

static Short

Version number that is written to the stream header.

static Byte

new Array.

static Byte

First tag value.

static Byte

Block of optional data.

static Byte

long Block data.

static Byte

Reference to Class.

static Byte

new Class Descriptor.

static Byte

End of optional block data blocks for an object.

static Byte

new Enum constant.

static Byte

Exception during write.

static Byte

Long string.

static Byte

Last tag value.

static Byte

Null object reference.

static Byte

new Object.

static Byte

new Proxy Class Descriptor.

static Byte

Reference to an object already written into the stream.

static Byte

Reset stream context.

static Byte

new String.

static Int

First wire handle to be assigned.

Properties
static SerializablePermission!

Enable overriding of readObject and writeObject.

static SerializablePermission!

Enable substitution of one object for another during serialization/deserialization.

Constants

PROTOCOL_VERSION_1

Added in API level 1
static val PROTOCOL_VERSION_1: Int

A 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.

Value: 1

PROTOCOL_VERSION_2

Added in API level 1
static val PROTOCOL_VERSION_2: Int

A 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.

Value: 2

SC_BLOCK_DATA

Added in API level 1
static val SC_BLOCK_DATA: Byte

Bit mask for ObjectStreamClass flag. Indicates Externalizable data written in Block Data mode. Added for PROTOCOL_VERSION_2.

Value: 8

SC_ENUM

Added in API level 1
static val SC_ENUM: Byte

Bit mask for ObjectStreamClass flag. Indicates class is an enum type.

Value: 16

SC_EXTERNALIZABLE

Added in API level 1
static val SC_EXTERNALIZABLE: Byte

Bit mask for ObjectStreamClass flag. Indicates class is Externalizable.

Value: 4

SC_SERIALIZABLE

Added in API level 1
static val SC_SERIALIZABLE: Byte

Bit mask for ObjectStreamClass flag. Indicates class is Serializable.

Value: 2

SC_WRITE_METHOD

Added in API level 1
static val SC_WRITE_METHOD: Byte

Bit mask for ObjectStreamClass flag. Indicates a Serializable class defines its own writeObject method.

Value: 1

STREAM_MAGIC

Added in API level 1
static val STREAM_MAGIC: Short

Magic number that is written to the stream header.

Value: -21267

STREAM_VERSION

Added in API level 1
static val STREAM_VERSION: Short

Version number that is written to the stream header.

Value: 5

TC_ARRAY

Added in API level 1
static val TC_ARRAY: Byte

new Array.

Value: 117

TC_BASE

Added in API level 1
static val TC_BASE: Byte

First tag value.

Value: 112

TC_BLOCKDATA

Added in API level 1
static val TC_BLOCKDATA: Byte

Block of optional data. Byte following tag indicates number of bytes in this block data.

Value: 119

TC_BLOCKDATALONG

Added in API level 1
static val TC_BLOCKDATALONG: Byte

long Block data. The long following the tag indicates the number of bytes in this block data.

Value: 122

TC_CLASS

Added in API level 1
static val TC_CLASS: Byte

Reference to Class.

Value: 118

TC_CLASSDESC

Added in API level 1
static val TC_CLASSDESC: Byte

new Class Descriptor.

Value: 114

TC_ENDBLOCKDATA

Added in API level 1
static val TC_ENDBLOCKDATA: Byte

End of optional block data blocks for an object.

Value: 120

TC_ENUM

Added in API level 1
static val TC_ENUM: Byte

new Enum constant.

Value: 126

TC_EXCEPTION

Added in API level 1
static val TC_EXCEPTION: Byte

Exception during write.

Value: 123

TC_LONGSTRING

Added in API level 1
static val TC_LONGSTRING: Byte

Long string.

Value: 124

TC_MAX

Added in API level 1
static val TC_MAX: Byte

Last tag value.

Value: 126

TC_NULL

Added in API level 1
static val TC_NULL: Byte

Null object reference.

Value: 112

TC_OBJECT

Added in API level 1
static val TC_OBJECT: Byte

new Object.

Value: 115

TC_PROXYCLASSDESC

Added in API level 1
static val TC_PROXYCLASSDESC: Byte

new Proxy Class Descriptor.

Value: 125

TC_REFERENCE

Added in API level 1
static val TC_REFERENCE: Byte

Reference to an object already written into the stream.

Value: 113

TC_RESET

Added in API level 1
static val TC_RESET: Byte

Reset stream context. All handles written into stream are reset.

Value: 121

TC_STRING

Added in API level 1
static val TC_STRING: Byte

new String.

Value: 116

baseWireHandle

Added in API level 1
static val baseWireHandle: Int

First wire handle to be assigned.

Value: 8257536

Properties

SUBCLASS_IMPLEMENTATION_PERMISSION

Added in API level 1
static val SUBCLASS_IMPLEMENTATION_PERMISSION: SerializablePermission!

Enable overriding of readObject and writeObject.

SUBSTITUTION_PERMISSION

Added in API level 1
static val SUBSTITUTION_PERMISSION: SerializablePermission!

Enable substitution of one object for another during serialization/deserialization.