Class ObjectSpaceObjectStreamHeader


  • public class ObjectSpaceObjectStreamHeader
    extends Object
    • Field Detail

      • count

        public long count
      • reserved

        public int reserved
      • extendedStreamsPresent

        public int extendedStreamsPresent
      • osidStreamNotPresent

        public int osidStreamNotPresent
    • Constructor Detail

      • ObjectSpaceObjectStreamHeader

        public ObjectSpaceObjectStreamHeader()
    • Method Detail

      • serializeToByteList

        public List<Byte> serializeToByteList()
                                       throws IOException
        This method is used to convert the element of ObjectSpaceObjectStreamHeader into a byte List.
        Returns:
        Return the byte list which store the byte information of ObjectSpaceObjectStreamHeader
        Throws:
        IOException
      • doDeserializeFromByteArray

        public int doDeserializeFromByteArray​(byte[] byteArray,
                                              int startIndex)
                                       throws IOException
        This method is used to deserialize the ObjectSpaceObjectStreamHeader object from the specified byte array and start index.
        Parameters:
        byteArray - Specify the byte array.
        startIndex - Specify the start index from the byte array.
        Returns:
        Return the length in byte of the ObjectSpaceObjectStreamHeader object.
        Throws:
        IOException