java.io
public interface ObjectStreamConstants
ObjectOutputStream
,
ObjectInputStream
, and ObjectStreamClass
.
The values for these constants are specified by the Java library
specification.
Since: 1.1
Field Summary | |
---|---|
int | baseWireHandle
The first handle that will be assigned to an object, for later references. |
int | PROTOCOL_VERSION_1
The serialization stream protocol version 1. |
int | PROTOCOL_VERSION_2
The serialization stream protocol version 2. |
byte | SC_BLOCK_DATA
Flag used in ObjectStreamClass to designate that
externalizable data is written in block data mode.
|
byte | SC_ENUM
Flag used in ObjectStreamClass to designate that the class
is an enum constant.
|
byte | SC_EXTERNALIZABLE
Flag used in ObjectStreamClass to designate that the class
is externalizable. |
byte | SC_SERIALIZABLE
Flag used in ObjectStreamClass to designate that the class
is serializeable. |
byte | SC_WRITE_METHOD
Flag used in ObjectStreamClass to designate that the class
defines the writeObject method. |
short | STREAM_MAGIC
The magic number that is written as part of the stream header. |
short | STREAM_VERSION
The stream version number that is written as part of the stream header.
|
SerializablePermission | SUBCLASS_IMPLEMENTATION_PERMISSION
Constant for use with a SecurityManager to check if
overriding of the writeObject and readObject
methods is allowed. |
SerializablePermission | SUBSTITUTION_PERMISSION
Constant for use with a SecurityManager to check if
substitution of objects is allowed. |
byte | TC_ARRAY
Token value to designate a new array is next in the stream. |
byte | TC_BASE
The first token value. |
byte | TC_BLOCKDATA
Token value to designate a block of primitive data is next in the stream.
|
byte | TC_BLOCKDATALONG
Token value to designate a long block of primitive data is next in the
stream. |
byte | TC_CLASS
Token reference to designate a reference to a class. |
byte | TC_CLASSDESC
Token value to designate a class descriptor is next in the stream. |
byte | TC_ENDBLOCKDATA
Token value to designate the end of a block of primitve data. |
byte | TC_ENUM
Token value to designate an enum constant is next in the stream.
|
byte | TC_EXCEPTION
Token value to designate an exception occured during serialization. |
byte | TC_LONGSTRING
Token value to designate a long string is next in the stream. |
byte | TC_MAX
The last token value. |
byte | TC_NULL
Token value to designate a null reference in the stream. |
byte | TC_OBJECT
Token value to designate a new object is next in the stream. |
byte | TC_PROXYCLASSDESC
Token value to designate a proxy class descriptor is next in the stream. |
byte | TC_REFERENCE
Token value to designate a reference to an already serialized object. |
byte | TC_RESET
Token value to designate a reset of the stream state. |
byte | TC_STRING
Token value to designate a new string is next in the stream. |
Since: 1.2
See Also: ObjectOutputStream
Since: 1.2
See Also: ObjectOutputStream
ObjectStreamClass
to designate that
externalizable data is written in block data mode.
Since: 1.2
ObjectStreamClass
to designate that the class
is an enum constant.
Since: 1.5
ObjectStreamClass
to designate that the class
is externalizable.ObjectStreamClass
to designate that the class
is serializeable.ObjectStreamClass
to designate that the class
defines the writeObject
method.SecurityManager
to check if
overriding of the writeObject
and readObject
methods is allowed.SecurityManager
to check if
substitution of objects is allowed.Since: 1.5
null
reference in the stream.