public class MPEGAudioFrameHeader extends Object
| Constructor and Description |
|---|
MPEGAudioFrameHeader(RandomAccessInputStream raf)
Create an MPEGAudioFrameHeader from the file specified.
|
MPEGAudioFrameHeader(RandomAccessInputStream raf,
int offset)
Create an MPEGAudioFrameHeader from the file specified.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getBitRate()
Returns the bitrate of the mpeg in kbps
|
String |
getChannelMode()
Return the channel mode of the mpeg in string form.
|
String |
getEmphasis()
Returns the emphasis.
|
String |
getLayer()
Return the layer description of the mpeg in string form.
|
int |
getSampleRate()
Returns the sample rate of the mpeg in Hz
|
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
|
String |
toString()
Return a string representation of this object.
|
public MPEGAudioFrameHeader(RandomAccessInputStream raf) throws NoMPEGFramesException, IOException
mp3 - the file to read fromNoMPEGFramesException - if the file is not a valid mpegFileNotFoundException - if an error occursIOException - if an error occurspublic MPEGAudioFrameHeader(RandomAccessInputStream raf, int offset) throws NoMPEGFramesException, IOException
mp3 - the file to read fromoffset - the offset to start searching fromNoMPEGFramesException - if the file is not a valid mpegFileNotFoundException - if an error occursIOException - if an error occurspublic String toString()
public String getVersion()
public String getLayer()
public String getChannelMode()
public int getBitRate()
public int getSampleRate()
public boolean isCopyrighted()
public boolean isProtected()
public boolean isOriginal()
public String getEmphasis()
public boolean isMP3()
Copyright © 2014. All rights reserved.