javazoom.jlgui.player.amp.tag

Class FlacInfo

Implemented Interfaces:
TagInfo

public class FlacInfo
extends java.lang.Object
implements TagInfo

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

Field Summary

protected int
bitspersample
protected int
channels
protected String
location
protected int
samplerate
protected long
size

Constructor Summary

FlacInfo()
Constructor.

Method Summary

String
getAlbum()
String
getArtist()
int
getBitRate()
int
getBitsPerSample()
int
getChannels()
Vector
getComment()
String
getGenre()
String
getLocation()
long
getPlayTime()
int
getSamplingRate()
long
getSize()
String
getTitle()
int
getTrack()
String
getYear()
void
load(File input)
Load and parse Flac info from File.
void
load(InputStream input)
Load and parse Flac info from InputStream.
void
load(URL input)
Load and parse Flac info from URL.
protected void
loadInfo(AudioFileFormat aff)
Load Flac info from AudioFileFormat.
protected void
loadInfo(File file)
Load Flac info from file.
protected void
loadInfo(InputStream input)
Load Flac info from input stream.
protected void
loadInfo(URL input)
Load Flac info from URL.

Field Details

bitspersample

protected int bitspersample

channels

protected int channels

location

protected String location

samplerate

protected int samplerate

size

protected long size

Constructor Details

FlacInfo

public FlacInfo()
Constructor.

Method Details

getAlbum

public String getAlbum()
Specified by:
getAlbum in interface TagInfo

getArtist

public String getArtist()
Specified by:
getArtist in interface TagInfo

getBitRate

public int getBitRate()
Specified by:
getBitRate in interface TagInfo

getBitsPerSample

public int getBitsPerSample()

getChannels

public int getChannels()
Specified by:
getChannels in interface TagInfo

getComment

public Vector getComment()
Specified by:
getComment in interface TagInfo

getGenre

public String getGenre()
Specified by:
getGenre in interface TagInfo

getLocation

public String getLocation()

getPlayTime

public long getPlayTime()
Specified by:
getPlayTime in interface TagInfo

getSamplingRate

public int getSamplingRate()
Specified by:
getSamplingRate in interface TagInfo

getSize

public long getSize()

getTitle

public String getTitle()
Specified by:
getTitle in interface TagInfo

getTrack

public int getTrack()
Specified by:
getTrack in interface TagInfo

getYear

public String getYear()
Specified by:
getYear in interface TagInfo

load

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

load

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

load

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

loadInfo

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

loadInfo

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

loadInfo

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

loadInfo

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

JavaZOOM 1999-2006