|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sk.baka.ambient.stream.shoutcast.Radio
public final class Radio
A SHOUTcast radio station.
Field Summary | |
---|---|
String |
currentTrack
currently played track, null if not known. |
String |
genre
The radio genre. |
String |
id
the radio ID |
String |
name
The displayable radio station name. |
Constructor Summary | |
---|---|
Radio(String name,
String id,
String genre,
String currentTrack)
Creates new radio |
Method Summary | |
---|---|
static Radio |
fromXML(Attributes attrs)
Parse the radio from given XML attributes. |
URL |
getPlaylistURL()
Retrieves the radio playlist URL. |
List<TrackMetadataBean> |
getRadioURLs()
Returns a list of URLs - radio sources. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final String name
public final String id
public final String genre
public final String currentTrack
null
if not known.
Constructor Detail |
---|
public Radio(String name, String id, String genre, String currentTrack)
name
- The displayable radio station name.id
- the radio IDgenre
- The radio genre.currentTrack
- currently played track, null
if not known.Method Detail |
---|
public String toString()
toString
in class Object
public URL getPlaylistURL() throws MalformedURLException
MalformedURLException
public List<TrackMetadataBean> getRadioURLs() throws IOException, ParseException
null
list of radio sources, read-only.
IOException
- if i/o error occurs.
ParseException
- if the playlist is not well formed.public static Radio fromXML(Attributes attrs)
attrs
- the attributes to parse
null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |