javazoom.jlgui.player.amp.tag

Class MpegInfo

Implemented Interfaces:
TagInfo

public class MpegInfo
extends java.lang.Object
implements TagInfo

This class gives information (audio format and comments) about MPEG file or URL.

Field Summary

protected String
album
protected String
artist
protected int
channels
protected String
channelsMode
protected Vector
comments
protected boolean
copyright
protected boolean
crc
protected String
emphasis
protected String
genre
protected String
layer
protected String
location
protected int
nominalbitrate
protected boolean
original
protected boolean
priv
protected int
rate
protected long
size
protected String
title
protected long
total
protected int
track
protected boolean
vbr
protected String
vendor
protected String
version
protected String
year

Constructor Summary

MpegInfo()
Constructor.

Method Summary

String
getAlbum()
Get the name of the album upon which the song resides
String
getArtist()
Get the artist that performed the song
int
getBitRate()
Get Nominal Bitrate
boolean
getCRC()
int
getChannels()
Get channels.
String
getChannelsMode()
Get channels mode.
Vector
getComment()
Get any comments provided about the song
boolean
getCopyright()
String
getEmphasis()
String
getGenre()
Get the genre string of the music
String
getLayer()
String
getLocation()
boolean
getOriginal()
long
getPlayTime()
Get play time in seconds.
int
getSamplingRate()
Get Sampling Rate
long
getSize()
String
getTitle()
Get the title of the song.
int
getTrack()
Get the track number of this track on the album
boolean
getVBR()
String
getVersion()
String
getYear()
Get the year the track was released
void
load(File input)
Load and parse MPEG info from File.
void
load(InputStream input)
Load and parse MPEG info from InputStream.
void
load(URL input)
Load and parse MPEG info from URL.
protected void
loadInfo(AudioFileFormat aff)
Load info from AudioFileFormat.
protected void
loadInfo(File file)
Load MP3 info from file.
protected void
loadInfo(InputStream input)
Load info from input stream.
protected void
loadInfo(URL input)
Load MP3 info from URL.
protected void
loadShoutastInfo(AudioFileFormat aff)
Load Shoutcast info from AudioFileFormat.

Field Details

album

protected String album

artist

protected String artist

channels

protected int channels

channelsMode

protected String channelsMode

comments

protected Vector comments

copyright

protected boolean copyright

crc

protected boolean crc

emphasis

protected String emphasis

genre

protected String genre

layer

protected String layer

location

protected String location

nominalbitrate

protected int nominalbitrate

original

protected boolean original

priv

protected boolean priv

rate

protected int rate

size

protected long size

title

protected String title

total

protected long total

track

protected int track

vbr

protected boolean vbr

vendor

protected String vendor

version

protected String version

year

protected String year

Constructor Details

MpegInfo

public MpegInfo()
Constructor.

Method Details

getAlbum

public String getAlbum()
Get the name of the album upon which the song resides
Specified by:
getAlbum in interface TagInfo
Returns:
the album name

getArtist

public String getArtist()
Get the artist that performed the song
Specified by:
getArtist in interface TagInfo
Returns:
the artist that performed the song

getBitRate

public int getBitRate()
Get Nominal Bitrate
Specified by:
getBitRate in interface TagInfo
Returns:
bitrate in bps

getCRC

public boolean getCRC()

getChannels

public int getChannels()
Get channels.
Specified by:
getChannels in interface TagInfo
Returns:
channels

getChannelsMode

public String getChannelsMode()
Get channels mode.
Returns:
channels mode

getComment

public Vector getComment()
Get any comments provided about the song
Specified by:
getComment in interface TagInfo
Returns:
the comments

getCopyright

public boolean getCopyright()

getEmphasis

public String getEmphasis()

getGenre

public String getGenre()
Get the genre string of the music
Specified by:
getGenre in interface TagInfo
Returns:
the genre string

getLayer

public String getLayer()

getLocation

public String getLocation()

getOriginal

public boolean getOriginal()

getPlayTime

public long getPlayTime()
Get play time in seconds.
Specified by:
getPlayTime in interface TagInfo
Returns:
play time in seconds

getSamplingRate

public int getSamplingRate()
Get Sampling Rate
Specified by:
getSamplingRate in interface TagInfo
Returns:
sampling rate

getSize

public long getSize()

getTitle

public String getTitle()
Get the title of the song.
Specified by:
getTitle in interface TagInfo
Returns:
the title of the song

getTrack

public int getTrack()
Get the track number of this track on the album
Specified by:
getTrack in interface TagInfo
Returns:
the track number

getVBR

public boolean getVBR()

getVersion

public String getVersion()

getYear

public String getYear()
Get the year the track was released
Specified by:
getYear in interface TagInfo
Returns:
the year the track was released

load

public void load(File input)
            throws IOException,
                   UnsupportedAudioFileException
Load and parse MPEG info from File.
Specified by:
load in interface TagInfo
Parameters:
input -

load

public void load(InputStream input)
            throws IOException,
                   UnsupportedAudioFileException
Load and parse MPEG info from InputStream.
Specified by:
load in interface TagInfo
Parameters:
input -

load

public void load(URL input)
            throws IOException,
                   UnsupportedAudioFileException
Load and parse MPEG info from URL.
Specified by:
load in interface TagInfo
Parameters:
input -

loadInfo

protected void loadInfo(AudioFileFormat aff)
            throws UnsupportedAudioFileException
Load info from AudioFileFormat.
Parameters:
aff -

loadInfo

protected void loadInfo(File file)
            throws IOException,
                   UnsupportedAudioFileException
Load MP3 info from file.
Parameters:
file -

loadInfo

protected void loadInfo(InputStream input)
            throws IOException,
                   UnsupportedAudioFileException
Load info from input stream.
Parameters:
input -

loadInfo

protected void loadInfo(URL input)
            throws IOException,
                   UnsupportedAudioFileException
Load MP3 info from URL.
Parameters:
input -

loadShoutastInfo

protected void loadShoutastInfo(AudioFileFormat aff)
            throws IOException,
                   UnsupportedAudioFileException
Load Shoutcast info from AudioFileFormat.
Parameters:
aff -

JavaZOOM 1999-2006