javazoom.jlgui.player.amp.tag
Interface TagInfo

All Known Implementing Classes:
APEInfo, FlacInfo, MpegInfo, OggVorbisInfo

public interface TagInfo

This interface define needed features for song information. Adapted from Scott Pennell interface.


Method Summary
 java.lang.String getAlbum()
          Get the name of the album upon which the song resides
 java.lang.String getArtist()
          Get the artist that performed the song
 int getBitRate()
          Get Nominal Bitrate
 int getChannels()
          Get channels.
 java.util.Vector getComment()
          Get any comments provided about the song
 java.lang.String getGenre()
          Get the genre string of the music
 long getPlayTime()
          Get play time in seconds.
 int getSamplingRate()
          Get Sampling Rate
 java.lang.String getTitle()
          Get the title of the song.
 int getTrack()
          Get the track number of this track on the album
 java.lang.String getYear()
          Get the year the track was released
 void load(java.io.File input)
           
 void load(java.io.InputStream input)
           
 void load(java.net.URL input)
           
 

Method Detail

load

void load(java.io.InputStream input)
          throws java.io.IOException,
                 javax.sound.sampled.UnsupportedAudioFileException
Throws:
java.io.IOException
javax.sound.sampled.UnsupportedAudioFileException

load

void load(java.net.URL input)
          throws java.io.IOException,
                 javax.sound.sampled.UnsupportedAudioFileException
Throws:
java.io.IOException
javax.sound.sampled.UnsupportedAudioFileException

load

void load(java.io.File input)
          throws java.io.IOException,
                 javax.sound.sampled.UnsupportedAudioFileException
Throws:
java.io.IOException
javax.sound.sampled.UnsupportedAudioFileException

getSamplingRate

int getSamplingRate()
Get Sampling Rate

Returns:
sampling rate

getBitRate

int getBitRate()
Get Nominal Bitrate

Returns:
bitrate in bps

getChannels

int getChannels()
Get channels.

Returns:
channels

getPlayTime

long getPlayTime()
Get play time in seconds.

Returns:
play time in seconds

getTitle

java.lang.String getTitle()
Get the title of the song.

Returns:
the title of the song

getArtist

java.lang.String getArtist()
Get the artist that performed the song

Returns:
the artist that performed the song

getAlbum

java.lang.String getAlbum()
Get the name of the album upon which the song resides

Returns:
the album name

getTrack

int getTrack()
Get the track number of this track on the album

Returns:
the track number

getGenre

java.lang.String getGenre()
Get the genre string of the music

Returns:
the genre string

getYear

java.lang.String getYear()
Get the year the track was released

Returns:
the year the track was released

getComment

java.util.Vector getComment()
Get any comments provided about the song

Returns:
the comments


JavaZOOM 1999-2006