|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcontrol.Control_http_Shoutcast
public class Control_http_Shoutcast
| Constructor Summary | |
|---|---|
Control_http_Shoutcast()
the default constructor. |
|
| Method Summary | |
|---|---|
java.lang.String |
getBaseAddress()
|
int |
getCurrentPage()
gives the current page back, which is loaded from shoutcast |
java.lang.String |
getfirstStreamFromURL(java.lang.String streamURL)
This method look for the stream address + port in a .pls or .m3u file and return the first one found. |
int[] |
getPages()
Returns the number of pages available with streams if this search. |
java.util.Vector<java.lang.String[]> |
getStreams()
This Method return an Vector of Strings witch contains all streams from a specific genre |
void |
getStreamsPerGenre(java.lang.String genre,
boolean keyword)
Browse the list of stream on shoutcast.com in the given genre and save it into an Array of Strings into an vector called streaminfo. streaminfo contains following information: streamInfo[0] = Name streamInfo[1] = now Playing streamInfo[2] = Listeners streamInfo[3] = Bitrate streamInfo[4] = Format streamInfo[5] = ID |
void |
getStreamsPerKeyword(java.lang.String keyword)
Browse the list of stream on shoutcast.com in the given genre and save it into an Array of Strings into an vector called streaminfo. streaminfo contains following information: streaminfo[0] = Name streaminfo[1] = now Playing streaminfo[2] = Listeners streaminfo[3] = Bitrate streaminfo[4] = Format streaminfo[5] = ID |
int |
getTotalPages()
gives the total amount of pages back, which represents this search which all results |
void |
nextPage()
Increases the to load page by one. |
void |
prevoiousPage()
decreases the to load page by one. |
java.lang.String |
readNextHtmlLine()
Read as long as the representing no-html String is empty from the incoming streamreader |
void |
resetPages()
set the to laod page of the first one |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Control_http_Shoutcast()
| Method Detail |
|---|
public void resetPages()
public void nextPage()
public void prevoiousPage()
public int getCurrentPage()
public int getTotalPages()
public int[] getPages()
public java.lang.String getfirstStreamFromURL(java.lang.String streamURL)
streamURL -
public void getStreamsPerGenre(java.lang.String genre,
boolean keyword)
genre - the keyword (most cases the genre)keyword - true, if the search should be with keywordspublic void getStreamsPerKeyword(java.lang.String keyword)
genre - the keyword for searchingkeyword - true, if the search should be with keywordspublic java.lang.String readNextHtmlLine()
public java.util.Vector<java.lang.String[]> getStreams()
public java.lang.String getBaseAddress()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||