public class StreamBitratePropertiesChunk extends Chunk
Modifier and Type | Field and Description |
---|---|
private java.util.List<java.lang.Long> |
bitRates
For each call of
addBitrateRecord(int,long) an Long
object is appended, which represents the average bitrate. |
private java.util.List<java.lang.Integer> |
streamNumbers
For each call of
addBitrateRecord(int,long) an Integer
object is appended, which represents the stream-number. |
chunkLength, guid, position
Constructor and Description |
---|
StreamBitratePropertiesChunk(java.math.BigInteger chunkLen)
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addBitrateRecord(int streamNum,
long averageBitrate)
Adds the public values of a stream-record.
|
long |
getAvgBitrate(int streamNumber)
Returns the average bitrate of the given stream.
|
java.lang.String |
prettyPrint(java.lang.String prefix)
(overridden)
|
getChunckEnd, getChunkEnd, getChunkLength, getGuid, getPosition, setPosition, toString
private final java.util.List<java.lang.Long> bitRates
addBitrateRecord(int,long)
an Long
object is appended, which represents the average bitrate.private final java.util.List<java.lang.Integer> streamNumbers
addBitrateRecord(int,long)
an Integer
object is appended, which represents the stream-number.public StreamBitratePropertiesChunk(java.math.BigInteger chunkLen)
chunkLen
- Length of current chunk.public void addBitrateRecord(int streamNum, long averageBitrate)
streamNum
- The number of the referred stream.averageBitrate
- Its average bitrate.public long getAvgBitrate(int streamNumber)
streamNumber
- Number of the stream whose bitrate to determine.-1
if no
information was given.public java.lang.String prettyPrint(java.lang.String prefix)
prettyPrint
in class Chunk
prefix
- each line gets this string prepended.Chunk.prettyPrint(String)
Copyright © 2005-2013 java.net. All Rights Reserved.