ie.tomallen.utils
Class MusicInfo

java.lang.Object
  |
  +--ie.tomallen.utils.MusicInfo
Direct Known Subclasses:
Mp3Id, OggInfo, WmaInfo

public abstract class MusicInfo
extends java.lang.Object

Abstract class describing how an MML-executor should work.

Version:
CVS: $Name: $ ($Id: MMLExecutor.java,v 1.29 2001/10/26 17:27:22 qtomall Exp $)
Author:
Anders Welen, Cell Telecom AB

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.
static MusicInfo id
           
 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.
 
Constructor Summary
MusicInfo()
           
 
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.
static MusicInfo getInstance(FileHandler fp)
          Constructor.
 java.lang.String getTitle()
          getTitle.
 int getVersion()
          getVersion.
 int getYear()
          getYear.
 boolean isValid()
          isValid.
 void printId()
          printInfo, this method will over-ridden by subclass.
 
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.


id

public static MusicInfo id
Constructor Detail

MusicInfo

public MusicInfo()
Method Detail

getInstance

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

Parameters:
fp - Filehander
Throws:
TException

isValid

public boolean isValid()
isValid.

Returns:
boolean true if Mp3Id object has a valid mp3 id

printId

public void printId()
printInfo, this method will over-ridden by subclass.


getTitle

public java.lang.String getTitle()
getTitle.


getArtist

public java.lang.String getArtist()
getArtist.


getAlbum

public java.lang.String getAlbum()
getAlbum.


getYear

public int getYear()
getYear.


getVersion

public int getVersion()
getVersion.


getComment

public java.lang.String getComment()
getComment.


getCountry

public java.lang.String getCountry()
getCountry.


getFileSize

public long getFileSize()
getFileSize.