|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcontrol.Control_Stream
public class Control_Stream
| Constructor Summary | |
|---|---|
Control_Stream(Gui_StreamRipStar mainGui)
|
|
| Method Summary | |
|---|---|
void |
addStreamToVector(Stream newStream)
Add a stream to the vector of all streams |
java.util.Vector<java.lang.String> |
collectOptions(Stream stream)
return all options for a stream in the way streamripper wants it |
void |
disableAllNewOptionsForAllStreams()
disable all options that are newer than streamripper 1.63.5 in all streams |
java.lang.Boolean |
existURL(java.lang.String Url)
looks if a Url in the streamVector already exist |
Stream |
getDefaultStream()
returns the default stream the basic stream is the stream, with the default values for an new created stream |
java.lang.String |
getFileBrowserPath()
Get the path to the filebrowser |
java.lang.String |
getGeneralPath()
Get the path to where all stream should be saved |
java.lang.String |
getlongestName()
|
java.lang.String |
getMP3PlayerPath()
Get the path to the mp3Player |
java.lang.String[] |
getPaths()
Collect all path together an pack it in a String[] |
int |
getPlaceInStreamVector(int id)
looks on witch position in the vector a stream is |
Stream |
getStreamByID(int id)
Look in der StreamVector, witch collects all streams for an stream with the given ID |
java.lang.String |
getStreamripperPath()
Get the path to streamripper |
java.util.Vector<Stream> |
getStreamVector()
Return the vector with all streams in it |
java.lang.String |
getWebBrowserPath()
Get the path to the webbrowser |
void |
loadDefaultStreamOnStart()
get the default stream from xml-file and create the stream object |
void |
loadStreamsOnStart()
gets all stream from xml-file and create for every stream in xml-file an object |
void |
removeStreamFromVector(int id)
Removes the stream, with the given id, from the vector of all streams |
void |
saveDefaultStream()
saves all streams from the streamvector in the "Streams.xml" file |
void |
saveStreamVector()
saves all streams from the streamvector in the "Streams.xml" file |
void |
setDefaultStream(Stream newDefaultStream)
set a new default Stream |
void |
setPaths(java.lang.String[] path)
update all path in this class |
void |
startMp3Player(java.lang.String content)
|
java.lang.Process |
startStreamripper(Stream stream)
|
void |
startWebBrowser(java.lang.String url)
|
void |
stopAllStreams()
stops all streams in the streamvector if the are recording |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Control_Stream(Gui_StreamRipStar mainGui)
| Method Detail |
|---|
public void saveStreamVector()
public void saveDefaultStream()
public Stream getDefaultStream()
public void setDefaultStream(Stream newDefaultStream)
public void loadStreamsOnStart()
public void loadDefaultStreamOnStart()
public void addStreamToVector(Stream newStream)
newStream - public java.util.Vector<Stream> getStreamVector()
public java.lang.String[] getPaths()
public void setPaths(java.lang.String[] path)
path: - all path in a arraypublic void removeStreamFromVector(int id)
id: - The id representing the stream in xml-filepublic java.lang.String getStreamripperPath()
public java.lang.String getGeneralPath()
public java.lang.String getWebBrowserPath()
public java.lang.String getFileBrowserPath()
public java.lang.String getMP3PlayerPath()
public void startMp3Player(java.lang.String content)
public void startWebBrowser(java.lang.String url)
public java.lang.Process startStreamripper(Stream stream)
public java.lang.String getlongestName()
public Stream getStreamByID(int id)
id: - the ID for the stream in xml-file
public int getPlaceInStreamVector(int id)
id: - the stream ID in xml-file
public java.lang.Boolean existURL(java.lang.String Url)
Url: - to test url
public void stopAllStreams()
public void disableAllNewOptionsForAllStreams()
public java.util.Vector<java.lang.String> collectOptions(Stream stream)
id: - the ID of the stream in xml-file
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||