Package org.jitsi.service.neomedia.rtp
Class RTCPExtendedReport.ReportBlock
- java.lang.Object
-
- org.jitsi.service.neomedia.rtp.RTCPExtendedReport.ReportBlock
-
- Direct Known Subclasses:
RTCPExtendedReport.VoIPMetricsReportBlock
- Enclosing class:
- RTCPExtendedReport
public abstract static class RTCPExtendedReport.ReportBlock extends Object
Represents an abstract, base extended report block.- Author:
- Lyubomir Marinov
-
-
Field Summary
Fields Modifier and Type Field Description shortblockTypeThe block type/format of this report block.
-
Constructor Summary
Constructors Modifier Constructor Description protectedReportBlock(short blockType)Initializes a new ReportBlock instance of a specific block type.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidassemble(DataOutputStream dataoutputstream)Serializes/writes the binary representation of this ReportBlock into a specific DataOutputStream.intcalcLength()Computes the length in bytes of this ReportBlock, including the header and any padding.
-
-
-
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.
-
-