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 Detail

      • 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_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_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_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_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
      • 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_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