javazoom.jlgui.player.amp.tag

Class OggVorbisInfo

Implemented Interfaces:
TagInfo

public class OggVorbisInfo
extends java.lang.Object
implements TagInfo

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

Field Summary

protected String
album
protected String
artist
protected int
averagebitrate
protected int
channels
protected Vector
comments
protected String
genre
protected String
location
protected int
maxbitrate
protected int
minbitrate
protected int
nominalbitrate
protected int
rate
protected int
serial
protected long
size
protected String
title
protected long
totalms
protected int
track
protected String
vendor
protected int
version
protected String
year

Constructor Summary

OggVorbisInfo()
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
getAverageBitrate()
int
getBitRate()
Get Nominal Bitrate
int
getChannels()
Get channels.
Vector
getComment()
Get any comments provided about the song
String
getGenre()
Get the genre string of the music
String
getLocation()
int
getMaxBitrate()
int
getMinBitrate()
long
getPlayTime()
Get play time in seconds.
int
getSamplingRate()
Get Sampling Rate
int
getSerial()
long
getSize()
String
getTitle()
Get the title of the song.
int
getTrack()
Get the track number of this track on the album
String
getVendor()
int
getVersion()
String
getYear()
Get the year the track was released
void
load(File input)
Load and parse Ogg Vorbis info from File.
void
load(InputStream input)
Load and parse Ogg Vorbis info from InputStream.
void
load(URL input)
Load and parse Ogg Vorbis info from URL.
protected void
loadExtendedInfo(AudioFileFormat aff)
Load extended info from AudioFileFormat.
protected void
loadInfo(AudioFileFormat aff)
Load info from AudioFileFormat.
protected void
loadInfo(File file)
Load Ogg Vorbis info from file.
protected void
loadInfo(InputStream input)
Load info from input stream.
protected void
loadInfo(URL input)
Load Ogg Vorbis info from URL.

Field Details

album

protected String album

artist

protected String artist

averagebitrate

protected int averagebitrate

channels

protected int channels

comments

protected Vector comments

genre

protected String genre

location

protected String location

maxbitrate

protected int maxbitrate

minbitrate

protected int minbitrate

nominalbitrate

protected int nominalbitrate

rate

protected int rate

serial

protected int serial

size

protected long size

title

protected String title

totalms

protected long totalms

track

protected int track

vendor

protected String vendor

version

protected int version

year

protected String year

Constructor Details

OggVorbisInfo

public OggVorbisInfo()
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

getAverageBitrate

public int getAverageBitrate()

getBitRate

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

getChannels

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

getComment

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

getGenre

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

getLocation

public String getLocation()

getMaxBitrate

public int getMaxBitrate()

getMinBitrate

public int getMinBitrate()

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

getSerial

public int getSerial()

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

getVendor

public String getVendor()

getVersion

public int 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 Ogg Vorbis info from File.
Specified by:
load in interface TagInfo
Parameters:
input -

load

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

load

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

loadExtendedInfo

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

loadInfo

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

loadInfo

protected void loadInfo(File file)
            throws IOException,
                   UnsupportedAudioFileException
Load Ogg Vorbis 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 Ogg Vorbis info from URL.
Parameters:
input -

JavaZOOM 1999-2006