comirva.util.external
Class ID3Reader

java.lang.Object
  extended by comirva.util.external.ID3Reader

public class ID3Reader
extends Object

This class is intended to read ID3 tags from MP3 files using the MP3SPI library.


Constructor Summary
ID3Reader(File mp3File)
          Creates a new ID3Reader instance that reads ID3 tags from a MP3 file.
 
Method Summary
 String getAlbum()
           
 String getArtist()
           
 Integer getBitrate()
           
 Integer getChannels()
           
 Long getDuration()
           
 Float getFps()
           
 Integer getFramesizeBytes()
           
 Integer getLengthBytes()
           
 Integer getLengthFrames()
           
 File getMp3File()
           
 String getTitle()
           
 void play()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ID3Reader

public ID3Reader(File mp3File)
          throws Exception
Creates a new ID3Reader instance that reads ID3 tags from a MP3 file.

Parameters:
mp3File - a File that represents the MP3 file
Throws:
Exception
Method Detail

play

public void play()

getAlbum

public String getAlbum()
Returns:
Returns the album.

getArtist

public String getArtist()
Returns:
Returns the artist.

getBitrate

public Integer getBitrate()
Returns:
Returns the bitrate.

getChannels

public Integer getChannels()
Returns:
Returns the channels (1 or 2).

getDuration

public Long getDuration()
Returns:
Returns the duration in microseconds.

getMp3File

public File getMp3File()
Returns:
Returns the mp3File.

getTitle

public String getTitle()
Returns:
Returns the title.

getFps

public Float getFps()
Returns:
Returns the fps.

getFramesizeBytes

public Integer getFramesizeBytes()
Returns:
Returns the framesizeBytes.

getLengthBytes

public Integer getLengthBytes()
Returns:
Returns the lengthBytes.

getLengthFrames

public Integer getLengthFrames()
Returns:
Returns the lengthFrames.