public abstract static class RTCPExtendedReport.ReportBlock
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
short |
blockType
The block type/format of this report block.
|
Modifier | Constructor and Description |
---|---|
protected |
ReportBlock(short blockType)
Initializes a new ReportBlock instance of a specific block
type.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
assemble(java.io.DataOutputStream dataoutputstream)
Serializes/writes the binary representation of this
ReportBlock into a specific DataOutputStream.
|
int |
calcLength()
Computes the length in bytes of this ReportBlock,
including the header and any padding.
|
protected ReportBlock(short blockType)
blockType
- the block type/format of the new instanceprotected abstract void assemble(java.io.DataOutputStream dataoutputstream) throws java.io.IOException
dataoutputstream
- the DataOutputStream into which the
binary representation of this ReportBlock is to be
serialized/written.java.io.IOException
- if an input/output error occurs during the
serialization/writing of the binary representation of this
ReportBlockpublic int calcLength()
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.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.