javazoom.jlgui.player.amp.playlist
Class PlaylistItem
java.lang.Object
javazoom.jlgui.player.amp.playlist.PlaylistItem
public class PlaylistItem
extends java.lang.Object
This class implements item for playlist.
_displayName
protected String _displayName
_isFile
protected boolean _isFile
_isSelected
protected boolean _isSelected
_location
protected String _location
_name
protected String _name
_seconds
protected long _seconds
PlaylistItem
protected PlaylistItem()
PlaylistItem
public PlaylistItem(String name,
String location,
long seconds,
boolean isFile)
Contructor for playlist item.
name
- Song name to be displayedlocation
- File or URLseconds
- Time lengthisFile
- true for File instance
getBitrate
public int getBitrate()
getChannels
public int getChannels()
getFormattedDisplayName
public String getFormattedDisplayName()
Returns item name such as (hh:mm:ss) Title - Artist
getFormattedLength
public String getFormattedLength()
Returns item lenght such as hh:mm:ss
getFormattedName
public String getFormattedName()
Returns item name such as (hh:mm:ss) Title - Artist if available.
getLength
public long getLength()
Returns playtime in seconds. If tag info is available then its playtime will be returned.
getLocation
public String getLocation()
getM3UExtInf
public String getM3UExtInf()
Return item name such as hh:mm:ss,Title,Artist
getName
public String getName()
getSamplerate
public int getSamplerate()
getTagInfo
public TagInfo getTagInfo()
Return TagInfo.
isFile
public boolean isFile()
Returns true if item to play is coming for a file.
isSelected
public boolean isSelected()
setFile
public void setFile(boolean b)
Set File flag for playslit item.
setFormattedDisplayName
public void setFormattedDisplayName(String fname)
setLocation
public void setLocation(String l)
Reads file comments/tags.
setLocation
public void setLocation(String l,
boolean readInfo)
Reads (or not) file comments/tags.
l
- input locationreadInfo
-
setSelected
public void setSelected(boolean mode)
JavaZOOM 1999-2006