All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class de.vdheide.mp3.MP3Properties

java.lang.Object
   |
   +----de.vdheide.mp3.MP3Properties

public class MP3Properties
extends Object

Variable Index

 o EMPHASIS_5015MS
 o EMPHASIS_CCITT
 o EMPHASIS_ILLEGAL
Constants for emphasis
 o EMPHASIS_NONE
 o MODE_DUAL_CHANNEL
 o MODE_JOINT_STEREO
 o MODE_MONO
 o MODE_STEREO
Constants for mode

Constructor Index

 o MP3Properties(File)
Create a new instance connected to file.

Method Index

 o getBitrate()
 o getCopyright()
 o getEmphasis()
Returns emphasis used in MP3 file.
 o getLayer()
 o getLength()
 o getMode()
Returns mode (mono, stereo) used in MP3 file.
 o getMPEGLevel()
 o getOriginal()
 o getPadding()
 o getPrivate()
 o getProtection()
 o getSamplerate()

Variables

 o MODE_STEREO
 public static final int MODE_STEREO
Constants for mode

 o MODE_JOINT_STEREO
 public static final int MODE_JOINT_STEREO
 o MODE_DUAL_CHANNEL
 public static final int MODE_DUAL_CHANNEL
 o MODE_MONO
 public static final int MODE_MONO
 o EMPHASIS_ILLEGAL
 public static final int EMPHASIS_ILLEGAL
Constants for emphasis

 o EMPHASIS_NONE
 public static final int EMPHASIS_NONE
 o EMPHASIS_5015MS
 public static final int EMPHASIS_5015MS
 o EMPHASIS_CCITT
 public static final int EMPHASIS_CCITT

Constructors

 o MP3Properties
 public MP3Properties(File file) throws IOException, NoMP3FrameException
Create a new instance connected to file. Properties are read immediately.

Parameters:
file - File to connect to
Throws: IOException
If an I/O error occurs
Throws: NoMP3FrameException
If file does not contain at least one mp3 frame

Methods

 o getMPEGLevel
 public int getMPEGLevel()
Returns:
MPEG level
 o getLayer
 public int getLayer()
Returns:
Layer, 0 for illegal entries
 o getBitrate
 public int getBitrate()
Returns:
bitrate, 0 for illegal entries
 o getSamplerate
 public int getSamplerate()
Returns:
samplerate, 0 for illegal entries
 o getMode
 public int getMode()
Returns mode (mono, stereo) used in MP3 file. Please use the constants MODE_XXX.

Returns:
Mode
 o getEmphasis
 public int getEmphasis()
Returns emphasis used in MP3 file. There are constants...

Returns:
emphasis
 o getProtection
 public boolean getProtection()
Returns:
Protection set?
 o getPadding
 public boolean getPadding()
Returns:
Padding set?
 o getPrivate
 public boolean getPrivate()
Returns:
Private bit set?
 o getCopyright
 public boolean getCopyright()
Returns:
Copyright bit set?
 o getOriginal
 public boolean getOriginal()
Returns:
Original?
 o getLength
 public long getLength()
Returns:
Length in seconds

All Packages  Class Hierarchy  This Package  Previous  Next  Index