|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--helliker.id3.MPEGAudioFrameHeader
| Constructor Summary | |
MPEGAudioFrameHeader(java.io.File mp3)
Create an MPEGAudioFrameHeader from the file specified. |
|
MPEGAudioFrameHeader(java.io.File mp3,
int offset)
Create an MPEGAudioFrameHeader from the file specified. |
|
| Method Summary | |
int |
getBitRate()
Returns the bitrate of the mpeg in kbps |
java.lang.String |
getChannelMode()
Return the channel mode of the mpeg in string form. |
java.lang.String |
getEmphasis()
Returns the emphasis. |
java.lang.String |
getLayer()
Return the layer description of the mpeg in string form. |
int |
getSampleRate()
Returns the sample rate of the mpeg in Hz |
java.lang.String |
getVersion()
Return the version of the mpeg in string form. |
boolean |
isCopyrighted()
Returns true if the audio is copyrighted |
boolean |
isMP3()
Returns true if the file passed to the constructor is an mp3 (MPEG layer III). |
boolean |
isOriginal()
Returns true if this is the original media |
boolean |
isProtected()
Returns true if this mpeg is protected by CRC |
java.lang.String |
toString()
Return 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 MPEGAudioFrameHeader(java.io.File mp3)
throws NoMPEGFramesException,
java.io.FileNotFoundException,
java.io.IOException
mp3 - the file to read fromNoMPEGFramesException - if the file is not a valid mpegjava.io.FileNotFoundException - if an error occursjava.io.IOException - if an error occurs
public MPEGAudioFrameHeader(java.io.File mp3,
int offset)
throws NoMPEGFramesException,
java.io.FileNotFoundException,
java.io.IOException
mp3 - the file to read fromoffset - the offset to start searching fromNoMPEGFramesException - if the file is not a valid mpegjava.io.FileNotFoundException - if an error occursjava.io.IOException - if an error occurs| Method Detail |
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getVersion()
public java.lang.String getLayer()
public java.lang.String getChannelMode()
public int getBitRate()
public int getSampleRate()
public boolean isCopyrighted()
public boolean isProtected()
public boolean isOriginal()
public java.lang.String getEmphasis()
public boolean isMP3()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||