|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthelliker.id3.VBRIHeader
public class VBRIHeader
| Constructor Summary | |
|---|---|
VBRIHeader(ByteBuffer header,
int layer,
int mpegVersion,
int sampleRate)
|
|
| Method Summary | |
|---|---|
protected void |
calc(int layer,
int mpegVersion,
int sampleRate)
Calculates the playing time and the average bitrate. |
boolean |
exists()
Returns true if a VBRI header was found in the file passed to the constructor. |
int |
getAvgBitrate()
Returns the average bit rate of the mpeg file if a Xing header exists and -1 otherwise. |
int |
getLength()
Returns the length of this header in bytes |
int |
getNumBytes()
Returns the number of data bytes in the mpeg frames. |
int |
getNumFrames()
Returns the number of MPEG frames in the file passed to the constructor. |
int |
getPlayingTime()
Returns the approximate playing time in seconds. |
int |
getQuality()
Returns the value of quality. |
int |
getTOCBytesPerEntry()
Returns the number of bytes per TOC entry. |
int |
getTOCFramesPerEntry()
Returns the number of frames per TOC entry. |
int |
getTOCLength()
Returns the length of the TOC in bytes. |
int |
getTOCNumEntries()
Returns the value of tocNumEntries. |
int |
getTOCScale()
Returns the value of tocScale. |
int |
getVersion()
Returns the VBRI version. |
String |
toString()
Returns a string representation of this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public VBRIHeader(ByteBuffer header,
int layer,
int mpegVersion,
int sampleRate)
| Method Detail |
|---|
public boolean exists()
public int getNumFrames()
public int getNumBytes()
public int getQuality()
public int getTOCScale()
public int getTOCBytesPerEntry()
public int getTOCFramesPerEntry()
public int getTOCLength()
public int getTOCNumEntries()
public int getVersion()
public int getLength()
protected void calc(int layer,
int mpegVersion,
int sampleRate)
layer - the layer value read by the MPEGAudioFrameHeadermpegVersion - the version value read by the MPEGAudioFrameHeadersampleRate - the sample rate read by the MPEGAudioFrameHeaderpublic int getAvgBitrate()
getAvgBitrate in interface VBRHeaderpublic int getPlayingTime()
VBRHeader
getPlayingTime in interface VBRHeaderpublic String toString()
toString in class Object
|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||