|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jaudiotagger.audio.asf.data.Chunk
org.jaudiotagger.audio.asf.data.StreamBitratePropertiesChunk
public class StreamBitratePropertiesChunk
This class represents the "Stream Bitrate Properties" chunk of an ASF media
file.
It is optional, but contains useful information about the streams bitrate.
| Field Summary | |
|---|---|
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. |
| Fields inherited from class org.jaudiotagger.audio.asf.data.Chunk |
|---|
chunkLength, guid, position |
| Constructor Summary | |
|---|---|
StreamBitratePropertiesChunk(java.math.BigInteger chunkLen)
Creates an instance. |
|
| Method Summary | |
|---|---|
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) |
| Methods inherited from class org.jaudiotagger.audio.asf.data.Chunk |
|---|
getChunckEnd, getChunkEnd, getChunkLength, getGuid, getPosition, setPosition, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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.
| Constructor Detail |
|---|
public StreamBitratePropertiesChunk(java.math.BigInteger chunkLen)
chunkLen - Length of current chunk.| Method Detail |
|---|
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 Chunkprefix - each line gets this string prepended.
Chunk.prettyPrint(String)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||