    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

##

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

##

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

##

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

##

MODE_STEREO

     public static final int MODE_STEREO

  Constants for mode

MODE_JOINT_STEREO

     public static final int MODE_JOINT_STEREO

MODE_DUAL_CHANNEL

     public static final int MODE_DUAL_CHANNEL

MODE_MONO

     public static final int MODE_MONO

EMPHASIS_ILLEGAL

     public static final int EMPHASIS_ILLEGAL

  Constants for emphasis

EMPHASIS_NONE

     public static final int EMPHASIS_NONE

EMPHASIS_5015MS

     public static final int EMPHASIS_5015MS

EMPHASIS_CCITT

     public static final int EMPHASIS_CCITT

##

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

##

getMPEGLevel

     public int getMPEGLevel()

  Returns:
    MPEG level

getLayer

     public int getLayer()

  Returns:
    Layer, 0 for illegal entries

getBitrate

     public int getBitrate()

  Returns:
    bitrate, 0 for illegal entries

getSamplerate

     public int getSamplerate()

  Returns:
    samplerate, 0 for illegal entries

getMode

     public int getMode()

  Returns mode (mono, stereo) used in MP3 file. Please use the constants MODE_XXX.

  Returns:
    Mode

getEmphasis

     public int getEmphasis()

  Returns emphasis used in MP3 file. There are constants...

  Returns:
    emphasis

getProtection

     public boolean getProtection()

  Returns:
    Protection set?

getPadding

     public boolean getPadding()

  Returns:
    Padding set?

getPrivate

     public boolean getPrivate()

  Returns:
    Private bit set?

getCopyright

     public boolean getCopyright()

  Returns:
    Copyright bit set?

getOriginal

     public boolean getOriginal()

  Returns:
    Original?

getLength

     public long getLength()

  Returns:
    Length in seconds

    All Packages  Class Hierarchy  This Package  Previous  Next  Index