ie.tomallen.utils
Class Mp3Id

java.lang.Object
  |
  +--ie.tomallen.utils.MusicInfo
        |
        +--ie.tomallen.utils.Mp3Id

public class Mp3Id
extends MusicInfo

Implements a Mp3Id object, MP3 file ID infomation reader. Copyright © 2003 Tom Allen

Version:
0.1
Author:
Tom Allen

Field Summary
 java.lang.String album
          'Album' field, from which the song was taken.
 java.lang.String artist
          'Song Artist' field got from ID3 tag.
 java.lang.String comment
          'Comment' field come MP3 ID.
 java.lang.String country
          'Country' field.
 long filesize
          Filesize.
 java.lang.String title
          'Song Title' field got from ID3 tag.
 int version
          mp3/ogg ID3 version number 3.2.4.0 stored as 3240.
 int year
          'Year' field, default=9999.
 
Fields inherited from class ie.tomallen.utils.MusicInfo
id
 
Constructor Summary
Mp3Id(FileHandler fp)
          Constructor.
 
Method Summary
 java.lang.String getAlbum()
          getAlbum.
 java.lang.String getArtist()
          getArtist.
 java.lang.String getComment()
          getComment.
 java.lang.String getCountry()
          getCountry.
 long getFileSize()
          getFileSize.
 java.lang.String getTitle()
          getTitle.
 int getVersion()
          getVersion.
 int getYear()
          getYear.
 boolean isValid()
          isValid.
 void printId()
          printInfo.
 
Methods inherited from class ie.tomallen.utils.MusicInfo
getInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

version

public int version
mp3/ogg ID3 version number 3.2.4.0 stored as 3240. supported versions=> 3.2.4.0, 3.2.4.1, 3.2.0.0 wma version = 0


artist

public java.lang.String artist
'Song Artist' field got from ID3 tag.


title

public java.lang.String title
'Song Title' field got from ID3 tag.


comment

public java.lang.String comment
'Comment' field come MP3 ID.


album

public java.lang.String album
'Album' field, from which the song was taken.


year

public int year
'Year' field, default=9999.


country

public java.lang.String country
'Country' field.


filesize

public long filesize
Filesize.

Constructor Detail

Mp3Id

public Mp3Id(FileHandler fp)
      throws TException
Constructor. opens files and setups the public class variables.

Parameters:
fp - filehander
Throws:
TException
Method Detail

isValid

public boolean isValid()
isValid.

Overrides:
isValid in class MusicInfo
Returns:
boolean true if Mp3Id object has a valid mp3 id

printId

public void printId()
printInfo.

Overrides:
printId in class MusicInfo

getTitle

public java.lang.String getTitle()
getTitle.

Overrides:
getTitle in class MusicInfo

getArtist

public java.lang.String getArtist()
getArtist.

Overrides:
getArtist in class MusicInfo

getAlbum

public java.lang.String getAlbum()
getAlbum.

Overrides:
getAlbum in class MusicInfo

getYear

public int getYear()
getYear.

Overrides:
getYear in class MusicInfo

getVersion

public int getVersion()
getVersion.

Overrides:
getVersion in class MusicInfo

getCountry

public java.lang.String getCountry()
getCountry.

Overrides:
getCountry in class MusicInfo

getComment

public java.lang.String getComment()
getComment.

Overrides:
getComment in class MusicInfo

getFileSize

public long getFileSize()
getFileSize.

Overrides:
getFileSize in class MusicInfo