|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavazoom.jlgui.player.amp.tag.MpegInfo
public class MpegInfo
This class gives information (audio format and comments) about MPEG file or URL.
Field Summary | |
---|---|
protected java.lang.String |
album
|
protected java.lang.String |
artist
|
protected int |
channels
|
protected java.lang.String |
channelsMode
|
protected java.util.Vector |
comments
|
protected boolean |
copyright
|
protected boolean |
crc
|
protected java.lang.String |
emphasis
|
protected java.lang.String |
genre
|
protected java.lang.String |
layer
|
protected java.lang.String |
location
|
protected int |
nominalbitrate
|
protected boolean |
original
|
protected boolean |
priv
|
protected int |
rate
|
protected long |
size
|
protected java.lang.String |
title
|
protected long |
total
|
protected int |
track
|
protected boolean |
vbr
|
protected java.lang.String |
vendor
|
protected java.lang.String |
version
|
protected java.lang.String |
year
|
Constructor Summary | |
---|---|
MpegInfo()
Constructor. |
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.lang.String |
getChannelsMode()
Get channels mode. |
java.util.Vector |
getComment()
Get any comments provided about the song |
boolean |
getCopyright()
|
boolean |
getCRC()
|
java.lang.String |
getEmphasis()
|
java.lang.String |
getGenre()
Get the genre string of the music |
java.lang.String |
getLayer()
|
java.lang.String |
getLocation()
|
boolean |
getOriginal()
|
long |
getPlayTime()
Get play time in seconds. |
int |
getSamplingRate()
Get Sampling Rate |
long |
getSize()
|
java.lang.String |
getTitle()
Get the title of the song. |
int |
getTrack()
Get the track number of this track on the album |
boolean |
getVBR()
|
java.lang.String |
getVersion()
|
java.lang.String |
getYear()
Get the year the track was released |
void |
load(java.io.File input)
Load and parse MPEG info from File. |
void |
load(java.io.InputStream input)
Load and parse MPEG info from InputStream. |
void |
load(java.net.URL input)
Load and parse MPEG info from URL. |
protected void |
loadInfo(javax.sound.sampled.AudioFileFormat aff)
Load info from AudioFileFormat. |
protected void |
loadInfo(java.io.File file)
Load MP3 info from file. |
protected void |
loadInfo(java.io.InputStream input)
Load info from input stream. |
protected void |
loadInfo(java.net.URL input)
Load MP3 info from URL. |
protected void |
loadShoutastInfo(javax.sound.sampled.AudioFileFormat aff)
Load Shoutcast info from AudioFileFormat. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int channels
protected java.lang.String channelsMode
protected java.lang.String version
protected int rate
protected java.lang.String layer
protected java.lang.String emphasis
protected int nominalbitrate
protected long total
protected java.lang.String vendor
protected java.lang.String location
protected long size
protected boolean copyright
protected boolean crc
protected boolean original
protected boolean priv
protected boolean vbr
protected int track
protected java.lang.String year
protected java.lang.String genre
protected java.lang.String title
protected java.lang.String artist
protected java.lang.String album
protected java.util.Vector comments
Constructor Detail |
---|
public MpegInfo()
Method Detail |
---|
public void load(java.io.File input) throws java.io.IOException, javax.sound.sampled.UnsupportedAudioFileException
load
in interface TagInfo
input
-
java.io.IOException
javax.sound.sampled.UnsupportedAudioFileException
public void load(java.net.URL input) throws java.io.IOException, javax.sound.sampled.UnsupportedAudioFileException
load
in interface TagInfo
input
-
java.io.IOException
javax.sound.sampled.UnsupportedAudioFileException
public void load(java.io.InputStream input) throws java.io.IOException, javax.sound.sampled.UnsupportedAudioFileException
load
in interface TagInfo
input
-
java.io.IOException
javax.sound.sampled.UnsupportedAudioFileException
protected void loadInfo(java.io.InputStream input) throws java.io.IOException, javax.sound.sampled.UnsupportedAudioFileException
input
-
java.io.IOException
javax.sound.sampled.UnsupportedAudioFileException
protected void loadInfo(java.io.File file) throws java.io.IOException, javax.sound.sampled.UnsupportedAudioFileException
file
-
java.io.IOException
javax.sound.sampled.UnsupportedAudioFileException
protected void loadInfo(javax.sound.sampled.AudioFileFormat aff) throws javax.sound.sampled.UnsupportedAudioFileException
aff
-
javax.sound.sampled.UnsupportedAudioFileException
protected void loadInfo(java.net.URL input) throws java.io.IOException, javax.sound.sampled.UnsupportedAudioFileException
input
-
java.io.IOException
javax.sound.sampled.UnsupportedAudioFileException
protected void loadShoutastInfo(javax.sound.sampled.AudioFileFormat aff) throws java.io.IOException, javax.sound.sampled.UnsupportedAudioFileException
aff
-
java.io.IOException
javax.sound.sampled.UnsupportedAudioFileException
public boolean getVBR()
public int getChannels()
TagInfo
getChannels
in interface TagInfo
public java.lang.String getVersion()
public java.lang.String getEmphasis()
public boolean getCopyright()
public boolean getCRC()
public boolean getOriginal()
public java.lang.String getLayer()
public long getSize()
public java.lang.String getLocation()
public int getSamplingRate()
TagInfo
getSamplingRate
in interface TagInfo
public int getBitRate()
TagInfo
getBitRate
in interface TagInfo
public long getPlayTime()
TagInfo
getPlayTime
in interface TagInfo
public java.lang.String getTitle()
TagInfo
getTitle
in interface TagInfo
public java.lang.String getArtist()
TagInfo
getArtist
in interface TagInfo
public java.lang.String getAlbum()
TagInfo
getAlbum
in interface TagInfo
public int getTrack()
TagInfo
getTrack
in interface TagInfo
public java.lang.String getGenre()
TagInfo
getGenre
in interface TagInfo
public java.util.Vector getComment()
TagInfo
getComment
in interface TagInfo
public java.lang.String getYear()
TagInfo
getYear
in interface TagInfo
public java.lang.String getChannelsMode()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |