|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.vdheide.mp3.MP3Properties
This class reads properties like bit rate etc. from an MP3 file. Of course these properties are read only... It supports ID3v2, i.e. it reliably skips even files which tags do not use the unsynchronization scheme Illegal entries are marked with special return values, not with exceptions. This enables the class to continue reading other properties.
Field Summary | |
static int |
EMPHASIS_5015MS
Emphasis: 5012ms |
static int |
EMPHASIS_CCITT
Emphasis: CCITT |
static int |
EMPHASIS_ILLEGAL
Emphasis: Illegal value |
static int |
EMPHASIS_NONE
Emphasis: None |
static int |
MODE_DUAL_CHANNEL
Mode: Dual channel |
static int |
MODE_JOINT_STEREO
Mode: Joint stereo |
static int |
MODE_MONO
Mode: Mono |
static int |
MODE_STEREO
Mode: Stereo |
Constructor Summary | |
MP3Properties(java.io.File file)
Create a new instance connected to file . |
Method Summary | |
int |
getBitrate()
|
boolean |
getCopyright()
|
int |
getEmphasis()
Returns emphasis used in MP3 file. |
int |
getLayer()
|
long |
getLength()
|
int |
getMode()
Returns mode (mono, stereo) used in MP3 file. |
int |
getMPEGLevel()
|
boolean |
getOriginal()
|
boolean |
getPadding()
|
boolean |
getPrivate()
|
boolean |
getProtection()
|
int |
getSamplerate()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int MODE_STEREO
public static final int MODE_JOINT_STEREO
public static final int MODE_DUAL_CHANNEL
public static final int MODE_MONO
public static final int EMPHASIS_ILLEGAL
public static final int EMPHASIS_NONE
public static final int EMPHASIS_5015MS
public static final int EMPHASIS_CCITT
Constructor Detail |
public MP3Properties(java.io.File file) throws java.io.IOException, NoMP3FrameException
file
. Properties are
read immediately.
file
- File to connect to
java.io.IOException
- If an I/O error occurs
NoMP3FrameException
- If file does not contain at least one mp3 frameMethod Detail |
public int getMPEGLevel()
public int getLayer()
public int getBitrate()
public int getSamplerate()
public int getMode()
public int getEmphasis()
public boolean getProtection()
public boolean getPadding()
public boolean getPrivate()
public boolean getCopyright()
public boolean getOriginal()
public long getLength()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |