Class RTCPExtendedReport.ReportBlock

    • Field Detail

      • blockType

        public final short blockType
        The block type/format of this report block.
    • Constructor Detail

      • ReportBlock

        protected ReportBlock​(short blockType)
        Initializes a new ReportBlock instance of a specific block type.
        Parameters:
        blockType - the block type/format of the new instance
    • Method Detail

      • assemble

        protected abstract void assemble​(DataOutputStream dataoutputstream)
                                  throws IOException
        Serializes/writes the binary representation of this ReportBlock into a specific DataOutputStream.
        Parameters:
        dataoutputstream - the DataOutputStream into which the binary representation of this ReportBlock is to be serialized/written.
        Throws:
        IOException - if an input/output error occurs during the serialization/writing of the binary representation of this ReportBlock
      • calcLength

        public int calcLength()
        Computes the length in bytes of this ReportBlock, including the header and any padding.

        The implementation of ReportBlock returns the length in bytes of the header of an extended report block i.e. 4. The implementation is provided as a convenience because RFC 3611 defines that the type-specific block contents of an extended report block may be zero bits long if the block type definition permits.

        Returns:
        the length in bytes of this ReportBlock, including the header and any padding.