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