Package java.io

Interface ObjectStreamConstants

All Known Implementing Classes:
ObjectInputStream, ObjectOutputStream

public interface ObjectStreamConstants
A helper interface with constants used by the serialization implementation.
  • Field Details

    • STREAM_MAGIC

      static final short STREAM_MAGIC
      The stream header's magic number.
      See Also:
      Constant Field Values
    • STREAM_VERSION

      static final short STREAM_VERSION
      The stream header's version number.
      See Also:
      Constant Field Values
    • TC_BASE

      static final byte TC_BASE
      The minimum tag value.
      See Also:
      Constant Field Values
    • TC_NULL

      static final byte TC_NULL
      Tag to mark a null object reference.
      See Also:
      Constant Field Values
    • TC_REFERENCE

      static final byte TC_REFERENCE
      Tag to mark a reference to an object that has already been written to the stream.
      See Also:
      Constant Field Values
    • TC_CLASSDESC

      static final byte TC_CLASSDESC
      Tag to mark a new class descriptor.
      See Also:
      Constant Field Values
    • TC_OBJECT

      static final byte TC_OBJECT
      Tag to mark a new object.
      See Also:
      Constant Field Values
    • TC_STRING

      static final byte TC_STRING
      Tag to mark a new string.
      See Also:
      Constant Field Values
    • TC_ARRAY

      static final byte TC_ARRAY
      Tag to mark a new array.
      See Also:
      Constant Field Values
    • TC_CLASS

      static final byte TC_CLASS
      Tag to mark a reference to a class.
      See Also:
      Constant Field Values
    • TC_BLOCKDATA

      static final byte TC_BLOCKDATA
      Tag to mark a block of optional data. The byte following this tag indicates the size of the block.
      See Also:
      Constant Field Values
    • TC_ENDBLOCKDATA

      static final byte TC_ENDBLOCKDATA
      Tag to mark the end of block data blocks for an object.
      See Also:
      Constant Field Values
    • TC_RESET

      static final byte TC_RESET
      Tag to mark a stream reset.
      See Also:
      Constant Field Values
    • TC_BLOCKDATALONG

      static final byte TC_BLOCKDATALONG
      Tag to mark a long block of data. The long following this tag indicates the size of the block.
      See Also:
      Constant Field Values
    • TC_EXCEPTION

      static final byte TC_EXCEPTION
      Tag to mark an exception.
      See Also:
      Constant Field Values
    • TC_LONGSTRING

      static final byte TC_LONGSTRING
      Tag to mark a long string.
      See Also:
      Constant Field Values
    • TC_PROXYCLASSDESC

      static final byte TC_PROXYCLASSDESC
      Tag to mark a new proxy class descriptor.
      See Also:
      Constant Field Values
    • TC_MAX

      static final byte TC_MAX
      The maximum tag value.
      See Also:
      Constant Field Values
    • baseWireHandle

      static final int baseWireHandle
      Handle for the first object that gets serialized.
      See Also:
      Constant Field Values
    • PROTOCOL_VERSION_1

      static final int PROTOCOL_VERSION_1
      Stream protocol version 1.
      See Also:
      Constant Field Values
    • PROTOCOL_VERSION_2

      static final int PROTOCOL_VERSION_2
      Stream protocol version 2.
      See Also:
      Constant Field Values
    • SUBCLASS_IMPLEMENTATION_PERMISSION

      static final SerializablePermission SUBCLASS_IMPLEMENTATION_PERMISSION
      Permission constant to enable subclassing of ObjectInputStream and ObjectOutputStream.
    • SUBSTITUTION_PERMISSION

      static final SerializablePermission SUBSTITUTION_PERMISSION
      Permission constant to enable object substitution during serialization and deserialization.
    • SC_WRITE_METHOD

      static final byte SC_WRITE_METHOD
      Bit mask for the flag field in ObjectStreamClass. Indicates that a serializable class has its own writeObject method.
      See Also:
      Constant Field Values
    • SC_SERIALIZABLE

      static final byte SC_SERIALIZABLE
      Bit mask for the flag field in ObjectStreamClass. Indicates that a class is serializable.
      See Also:
      Constant Field Values
    • SC_EXTERNALIZABLE

      static final byte SC_EXTERNALIZABLE
      Bit mask for the flag field in ObjectStreamClass. Indicates that a class is externalizable.
      See Also:
      Constant Field Values
    • SC_BLOCK_DATA

      static final byte SC_BLOCK_DATA
      Bit mask for the flag field in ObjectStreamClass. Indicates that an externalizable class is written in block data mode.
      See Also:
      Constant Field Values
    • TC_ENUM

      static final byte TC_ENUM
      Tag to mark a new enum.
      See Also:
      Constant Field Values
    • SC_ENUM

      static final byte SC_ENUM
      Bit mask for the flag field in ObjectStreamClass. Indicates that a class is an enum type.
      See Also:
      Constant Field Values