Class DataSizeObject

    • Field Detail

      • dataSize

        public long dataSize
    • Constructor Detail

      • DataSizeObject

        public DataSizeObject()
        Initializes a new instance of the DataSizeObject class.
    • Method Detail

      • deserializeItemsFromByteArray

        protected void deserializeItemsFromByteArray​(byte[] byteArray,
                                                     AtomicInteger currentIndex,
                                                     int lengthOfItems)
                                              throws IOException
        Used to de-serialize the element.
        Specified by:
        deserializeItemsFromByteArray in class StreamObject
        Parameters:
        byteArray - A Byte array
        currentIndex - Start position
        lengthOfItems - The length of the items
        Throws:
        IOException
      • serializeItemsToByteList

        protected int serializeItemsToByteList​(List<Byte> byteList)
        Used to convert the element into a byte List.
        Specified by:
        serializeItemsToByteList in class StreamObject
        Parameters:
        byteList - A Byte list
        Returns:
        A constant value 8