Interface ObjectStreamConstants
- All Known Implementing Classes:
-
ObjectInputStream
,ObjectOutputStream
public interface ObjectStreamConstants
- Since:
- 1.1
Field Summary
Modifier and Type | Field | Description |
---|---|---|
static final int |
baseWireHandle |
First wire handle to be assigned. |
static final int |
PROTOCOL_VERSION_1 |
A Stream Protocol Version. |
static final int |
PROTOCOL_VERSION_2 |
A Stream Protocol Version. |
static final byte |
SC_BLOCK_DATA |
Bit mask for ObjectStreamClass flag. |
static final byte |
SC_ENUM |
Bit mask for ObjectStreamClass flag. |
static final byte |
SC_EXTERNALIZABLE |
Bit mask for ObjectStreamClass flag. |
static final byte |
SC_SERIALIZABLE |
Bit mask for ObjectStreamClass flag. |
static final byte |
SC_WRITE_METHOD |
Bit mask for ObjectStreamClass flag. |
static final SerializablePermission |
SERIAL_FILTER_PERMISSION |
Enable setting the system-wide serial filter. |
static final short |
STREAM_MAGIC |
Magic number that is written to the stream header. |
static final short |
STREAM_VERSION |
Version number that is written to the stream header. |
static final SerializablePermission |
SUBCLASS_IMPLEMENTATION_PERMISSION |
Enable overriding of readObject and writeObject. |
static final SerializablePermission |
SUBSTITUTION_PERMISSION |
Enable substitution of one object for another during serialization/deserialization. |
static final byte |
TC_ARRAY |
new Array. |
static final byte |
TC_BASE |
First tag value. |
static final byte |
TC_BLOCKDATA |
Block of optional data. |
static final byte |
TC_BLOCKDATALONG |
long Block data. |
static final byte |
TC_CLASS |
Reference to Class. |
static final byte |
TC_CLASSDESC |
new Class Descriptor. |
static final byte |
TC_ENDBLOCKDATA |
End of optional block data blocks for an object. |
static final byte |
TC_ENUM |
new Enum constant. |
static final byte |
TC_EXCEPTION |
Exception during write. |
static final byte |
TC_LONGSTRING |
Long string. |
static final byte |
TC_MAX |
Last tag value. |
static final byte |
TC_NULL |
Null object reference. |
static final byte |
TC_OBJECT |
new Object. |
static final byte |
TC_PROXYCLASSDESC |
new Proxy Class Descriptor. |
static final byte |
TC_REFERENCE |
Reference to an object already written into the stream. |
static final byte |
TC_RESET |
Reset stream context. |
static final byte |
TC_STRING |
new String. |
Field Details
STREAM_MAGIC
static final short STREAM_MAGIC
- See Also:
STREAM_VERSION
static final short STREAM_VERSION
- See Also:
TC_BASE
static final byte TC_BASE
- See Also:
TC_NULL
static final byte TC_NULL
- See Also:
TC_REFERENCE
static final byte TC_REFERENCE
- See Also:
TC_CLASSDESC
static final byte TC_CLASSDESC
- See Also:
TC_OBJECT
static final byte TC_OBJECT
- See Also:
TC_STRING
static final byte TC_STRING
- See Also:
TC_ARRAY
static final byte TC_ARRAY
- See Also:
TC_CLASS
static final byte TC_CLASS
- See Also:
TC_BLOCKDATA
static final byte TC_BLOCKDATA
- See Also:
TC_ENDBLOCKDATA
static final byte TC_ENDBLOCKDATA
- See Also:
TC_RESET
static final byte TC_RESET
- See Also:
TC_BLOCKDATALONG
static final byte TC_BLOCKDATALONG
- See Also:
TC_EXCEPTION
static final byte TC_EXCEPTION
- See Also:
TC_LONGSTRING
static final byte TC_LONGSTRING
- See Also:
TC_PROXYCLASSDESC
static final byte TC_PROXYCLASSDESC
- See Also:
TC_ENUM
static final byte TC_ENUM
- Since:
- 1.5
- See Also:
TC_MAX
static final byte TC_MAX
- See Also:
baseWireHandle
static final int baseWireHandle
- See Also:
SC_WRITE_METHOD
static final byte SC_WRITE_METHOD
- See Also:
SC_BLOCK_DATA
static final byte SC_BLOCK_DATA
- Since:
- 1.2
- See Also:
SC_SERIALIZABLE
static final byte SC_SERIALIZABLE
- See Also:
SC_EXTERNALIZABLE
static final byte SC_EXTERNALIZABLE
- See Also:
SC_ENUM
static final byte SC_ENUM
- Since:
- 1.5
- See Also:
SUBSTITUTION_PERMISSION
static final SerializablePermission SUBSTITUTION_PERMISSION
SUBCLASS_IMPLEMENTATION_PERMISSION
static final SerializablePermission SUBCLASS_IMPLEMENTATION_PERMISSION
- Since:
- 1.2
- See Also:
SERIAL_FILTER_PERMISSION
static final SerializablePermission SERIAL_FILTER_PERMISSION
- Since:
- 9
- See Also:
PROTOCOL_VERSION_1
static final int PROTOCOL_VERSION_1
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.
- Since:
- 1.2
- See Also:
PROTOCOL_VERSION_2
static final int PROTOCOL_VERSION_2
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.
- Since:
- 1.2
- See Also:
© 1993, 2021, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/ObjectStreamConstants.html